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 c322948892)

Co-authored-by: Samuel Marks <807580+SamuelMarks@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2020-09-21 01:58:27 -07:00 committed by GitHub
parent 0e4d526de4
commit 7aa534c956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2676,7 +2676,7 @@ init_dump_ascii_wstr(const wchar_t *str)
if (ch == L'\'') { if (ch == L'\'') {
PySys_WriteStderr("\\'"); PySys_WriteStderr("\\'");
} else if (0x20 <= ch && ch < 0x7f) { } else if (0x20 <= ch && ch < 0x7f) {
PySys_WriteStderr("%lc", ch); PySys_WriteStderr("%c", ch);
} }
else if (ch <= 0xff) { else if (ch <= 0xff) {
PySys_WriteStderr("\\x%02x", ch); PySys_WriteStderr("\\x%02x", ch);