Skip to content

Commit c322948

Browse files
authored
bpo-41819: Fix compiler warning in init_dump_ascii_wstr() (pythonGH-22332)
Fix the compiler warning: format specifies type `wint_t` (aka `int`) but the argument has type `unsigned int`
1 parent bc6b7fa commit c322948

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/initconfig.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2674,7 +2674,7 @@ init_dump_ascii_wstr(const wchar_t *str)
26742674
if (ch == L'\'') {
26752675
PySys_WriteStderr("\\'");
26762676
} else if (0x20 <= ch && ch < 0x7f) {
2677-
PySys_WriteStderr("%lc", ch);
2677+
PySys_WriteStderr("%c", ch);
26782678
}
26792679
else if (ch <= 0xff) {
26802680
PySys_WriteStderr("\\x%02x", ch);

0 commit comments

Comments
 (0)