diff options
author | Miss Skeleton (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-10-21 08:55:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-21 08:55:38 (GMT) |
commit | c756c2b507b088919ac0c1aa8b0d8c8bdbdd75ee (patch) | |
tree | d3e7166c4cdca844dd6c767299c0a966165febe5 /Python | |
parent | a8e6af798e6bfc0d9479a4d16e2bc8cc1a4ad283 (diff) | |
download | cpython-c756c2b507b088919ac0c1aa8b0d8c8bdbdd75ee.zip cpython-c756c2b507b088919ac0c1aa8b0d8c8bdbdd75ee.tar.gz cpython-c756c2b507b088919ac0c1aa8b0d8c8bdbdd75ee.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`
(cherry picked from commit c322948892438a387d752ec18d1eb512699a4d67)
Co-authored-by: Samuel Marks <807580+SamuelMarks@users.noreply.github.com>
Diffstat (limited to 'Python')
-rw-r--r-- | Python/initconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/initconfig.c b/Python/initconfig.c index b28e0a0..69711d8 100644 --- a/Python/initconfig.c +++ b/Python/initconfig.c @@ -2593,7 +2593,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); |