Skip to content

Commit c549527

Browse files
miss-islingtonSamuelMarks
authored andcommitted
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` (cherry picked from commit c322948) Co-authored-by: Samuel Marks <807580+SamuelMarks@users.noreply.github.com>
1 parent 168a838 commit c549527

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
@@ -2676,7 +2676,7 @@ init_dump_ascii_wstr(const wchar_t *str)
26762676
if (ch == L'\'') {
26772677
PySys_WriteStderr("\\'");
26782678
} else if (0x20 <= ch && ch < 0x7f) {
2679-
PySys_WriteStderr("%lc", ch);
2679+
PySys_WriteStderr("%c", ch);
26802680
}
26812681
else if (ch <= 0xff) {
26822682
PySys_WriteStderr("\\x%02x", ch);

0 commit comments

Comments
 (0)