Skip to content

Commit

Permalink
bpo-41819: Fix compiler warning in init_dump_ascii_wstr() (GH-22332)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
miss-islington and SamuelMarks committed Oct 21, 2020
1 parent a8e6af7 commit c756c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/initconfig.c
Expand Up @@ -2593,7 +2593,7 @@ init_dump_ascii_wstr(const wchar_t *str)
if (ch == L'\'') {
PySys_WriteStderr("\\'");
} else if (0x20 <= ch && ch < 0x7f) {
PySys_WriteStderr("%lc", ch);
PySys_WriteStderr("%c", ch);
}
else if (ch <= 0xff) {
PySys_WriteStderr("\\x%02x", ch);
Expand Down

0 comments on commit c756c2b

Please sign in to comment.