This is an archive of the discontinued LLVM Phabricator instance.

[flang][runtime] Fix return value for MINVAL/MAXVAL for CHARACTER(kind > 1)
ClosedPublic

Authored by klausler on Aug 18 2022, 11:18 AM.

Details

Summary

CharacterExtremumAccumulator::GetResult() needs to use byte counts, not wide
character counts, when calling memcpy() & memset().

Diff Detail

Event Timeline

klausler created this revision.Aug 18 2022, 11:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2022, 11:18 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Aug 18 2022, 11:18 AM
PeteSteinfeld accepted this revision.Aug 18 2022, 1:52 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Aug 18 2022, 1:52 PM