diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-09-21 08:58:27 (GMT) |
|---|---|---|
| committer | Ćukasz Langa <lukasz@langa.pl> | 2020-10-04 17:17:27 (GMT) |
| commit | c549527ae2cc4b5934dbe80fea127fb04ff65af5 (patch) | |
| tree | 755192e478755b1919e39f237548176774166b01 /Python | |
| parent | 168a8383c8358eea1b34df0e832f5d652faa6444 (diff) | |
| download | cpython-c549527ae2cc4b5934dbe80fea127fb04ff65af5.zip cpython-c549527ae2cc4b5934dbe80fea127fb04ff65af5.tar.gz cpython-c549527ae2cc4b5934dbe80fea127fb04ff65af5.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 9887079..e882a1f 100644 --- a/Python/initconfig.c +++ b/Python/initconfig.c @@ -2676,7 +2676,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); |
