This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix error compiling std::min on macos
ClosedPublic

Authored by tskeith on Mar 25 2021, 7:29 AM.

Details

Summary

On macos, size_t is unsigned long while size_t - int64_t is
unsigned long long so std::min requires an explicit type to compile.

Diff Detail

Event Timeline

tskeith created this revision.Mar 25 2021, 7:29 AM
tskeith requested review of this revision.Mar 25 2021, 7:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 25 2021, 7:29 AM
klausler accepted this revision.Mar 25 2021, 10:16 AM

Thank you.

This revision is now accepted and ready to land.Mar 25 2021, 10:16 AM
This revision was automatically updated to reflect the committed changes.