| commit | 328aa2064fcd928608524c38faffbdf748487682 | [log] [tgz] |
|---|---|---|
| author | LIU Hao <lh_mouse@126.com> | Thu Nov 27 18:46:25 2025 +0800 |
| committer | LIU Hao <lh_mouse@126.com> | Mon Dec 01 10:07:43 2025 +0800 |
| tree | 0bcd55f4e4787528794c5550bacd9a035ae9df2a | |
| parent | dbb357dae2227250b6cbf110d8a02f83934eb5c9 [diff] |
crt/stdio: Fix `%.d` output of printf128 for 0 When `%.d` is passed an argument of 0, it should not produce any digits. The printf128 path uses an intermediate numeric string, which, in this case, shall be truncated to an empty string. Old code left least one digit so it erroneously produced "0". This error was observed in one test in MPFR. Signed-off-by: LIU Hao <lh_mouse@126.com>