This is an archive of the discontinued LLVM Phabricator instance.

[libc][NFC] fix sprintf test on 32 bit systems
ClosedPublic

Authored by michaelrj on Jul 25 2023, 11:53 AM.

Details

Summary

The expected number for the max ptrdiff value was expected to be exactly
4294967296 (232) for 32 bit systems, when it should be
4294967295 (2
32 - 1). This also adds a second test to check for this
case on non-32 bit systems.

Diff Detail

Event Timeline

michaelrj created this revision.Jul 25 2023, 11:53 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 25 2023, 11:53 AM
michaelrj requested review of this revision.Jul 25 2023, 11:53 AM
mikhail.ramalho accepted this revision.Jul 26 2023, 5:51 AM
This revision is now accepted and ready to land.Jul 26 2023, 5:51 AM
lntue accepted this revision.Jul 26 2023, 8:32 AM
This revision was automatically updated to reflect the committed changes.