From ca43b14417020cdb3c2839eafb3d0f90767b24dc Mon Sep 17 00:00:00 2001 From: Samuel Marks <807580+SamuelMarks@users.noreply.github.com> Date: Mon, 21 Sep 2020 12:00:42 +1000 Subject: [PATCH] bpo-41819: Fix "warning: format specifies type `wint_t` (aka `int`) but the argument has type `unsigned int`" (pythonGH-) --- Python/initconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/initconfig.c b/Python/initconfig.c index 880e145ec031cd..6a13dc52ed776c 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);