This is an archive of the discontinued LLVM Phabricator instance.

[libc] Fix printf g conversion with high precision
ClosedPublic

Authored by michaelrj on Jul 27 2023, 2:02 PM.

Details

Summary

The number of trailing zeroes was being calculated incorrectly. It was
assuming that it could add all of the implicit leading zeroes in the
final block, not accounting for the number of digits actually reqested
by the precision.

Diff Detail

Event Timeline

michaelrj created this revision.Jul 27 2023, 2:02 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 27 2023, 2:02 PM
michaelrj requested review of this revision.Jul 27 2023, 2:02 PM
lntue accepted this revision.Jul 28 2023, 6:21 AM
This revision is now accepted and ready to land.Jul 28 2023, 6:21 AM
This revision was automatically updated to reflect the committed changes.