summaryrefslogtreecommitdiffstats
path: root/Python/initconfig.c
diff options
context:
space:
mode:
authorSamuel Marks <807580+SamuelMarks@users.noreply.github.com>2020-09-21 08:35:17 (GMT)
committerGitHub <noreply@github.com>2020-09-21 08:35:17 (GMT)
commitc322948892438a387d752ec18d1eb512699a4d67 (patch)
treec409e6d2e54929b27889cb4c8a9c63289c4095f1 /Python/initconfig.c
parentbc6b7fa6d7fb8957eb4ff809366af40dfb12b8cd (diff)
downloadcpython-c322948892438a387d752ec18d1eb512699a4d67.zip
cpython-c322948892438a387d752ec18d1eb512699a4d67.tar.gz
cpython-c322948892438a387d752ec18d1eb512699a4d67.tar.bz2
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`
Diffstat (limited to 'Python/initconfig.c')
-rw-r--r--Python/initconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/initconfig.c b/Python/initconfig.c
index 880e145..6a13dc5 100644
--- a/Python/initconfig.c
+++ b/Python/initconfig.c
@@ -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);