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`
This commit is contained in:
Samuel Marks 2020-09-21 18:35:17 +10:00 committed by GitHub
parent bc6b7fa6d7
commit c322948892
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2674,7 +2674,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);