]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-10320: Replace nonstandard sprintf() length modifier in ctypes' PyCArg_repr(...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 3 Dec 2018 09:11:37 +0000 (01:11 -0800)
committerGitHub <noreply@github.com>
Mon, 3 Dec 2018 09:11:37 +0000 (01:11 -0800)
Use "ll" instead of the nonstandard "q".
(cherry picked from commit 062cbb67726f26794b1b461853e40696b4a0b220)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Modules/_ctypes/callproc.c

index e6079e9938ceca372c52cb1cd524bcf5faa86a2a..04fbc010ca7dfc88a413b00dedad1ef34d557e67 100644 (file)
@@ -484,7 +484,7 @@ PyCArg_repr(PyCArgObject *self)
 #ifdef MS_WIN32
             "<cparam '%c' (%I64d)>",
 #else
-            "<cparam '%c' (%qd)>",
+            "<cparam '%c' (%lld)>",
 #endif
             self->tag, self->value.q);
         break;