Skip to content

Commit c756c2b

Browse files
bpo-41819: Fix compiler warning in init_dump_ascii_wstr() (GH-22332)
Fix the compiler warning: format specifies type `wint_t` (aka `int`) but the argument has type `unsigned int` (cherry picked from commit c322948) Co-authored-by: Samuel Marks <[email protected]>
1 parent a8e6af7 commit c756c2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/initconfig.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2593,7 +2593,7 @@ init_dump_ascii_wstr(const wchar_t *str)
25932593
if (ch == L'\'') {
25942594
PySys_WriteStderr("\\'");
25952595
} else if (0x20 <= ch && ch < 0x7f) {
2596-
PySys_WriteStderr("%lc", ch);
2596+
PySys_WriteStderr("%c", ch);
25972597
}
25982598
else if (ch <= 0xff) {
25992599
PySys_WriteStderr("\\x%02x", ch);

0 commit comments

Comments
 (0)