This is an archive of the discontinued LLVM Phabricator instance.

[libomptarget][NFC] Replace `%ld` with PRId64 for data of type int64_t.
ClosedPublic

Authored by grokos on Aug 5 2020, 1:17 PM.

Details

Summary

The standard way of printing int64_t data is via the PRId64 macro, ld is for long int and int64_t is not guaranteed to be typedef'ed as long int on all platforms.
E.g. on Windows we get mismatch warnings.

Diff Detail

Event Timeline

grokos requested review of this revision.Aug 5 2020, 1:17 PM
grokos created this revision.
jdoerfert accepted this revision.Aug 5 2020, 1:26 PM

LGTM. thx

This revision is now accepted and ready to land.Aug 5 2020, 1:26 PM
This revision was landed with ongoing or failed builds.Aug 5 2020, 1:31 PM
This revision was automatically updated to reflect the committed changes.