8000 bpo-41819: Fix compiler warning in init_dump_ascii_wstr() (GH-22332) · python/cpython@c322948 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c322948

Browse files
authored
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`
1 parent bc6b7fa commit c322948

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

0 commit comments

Comments
 (0)
0