1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-10-27 12:15:39 +03:00
Files
glibc/stdio-common
Joseph Myers 0807a262de Make <inttypes.h> printf macros narrow arguments (bug 31470)
A late change in C23, the resolution to CD2 comment GB-108, specified
that <inttypes.h> macros such as PRId8 expand to formats such that,
when an argument is passed in the promoted type that isn't
representable in the original type such as int8_t corresponding to the
format, it gets converted to that type before printing.  (Previously,
the proper handling of such arguments was unclear; the case of direct
use of formats such as %hhd was clarified earlier in C23 development,
and had been fixed in glibc in 2006.)  Implement the change to use
formats such as "hhd" for the affected macros, with associated tests.

Tested for x86_64 and x86.
2025-10-20 12:44:40 +00:00
..
2024-12-22 17:29:28 +08:00
2023-06-13 19:59:08 -04:00
2023-06-13 19:59:08 -04:00
2024-12-22 17:29:28 +08:00
2023-06-01 13:01:32 -04:00
2023-06-13 19:59:08 -04:00
2021-09-03 22:06:44 +05:30
2023-06-01 13:01:32 -04:00
2023-05-18 12:34:00 -04:00
2023-05-18 12:34:00 -04:00
2023-05-18 12:34:00 -04:00
2025-04-28 09:51:59 -03:00
2025-05-16 19:53:09 +02:00
2023-06-13 19:59:08 -04:00
2025-01-28 12:50:50 -05:00
2023-10-30 13:03:59 -03:00