]> 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>
Tue, 18 Dec 2018 23:51:04 +0000 (15:51 -0800)
committerGitHub <noreply@github.com>
Tue, 18 Dec 2018 23:51:04 +0000 (15:51 -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 63f3c21784d53bca028f6e47fa80939253635302..ff2a7da4246f833a6bb02a1f604e9131a5092787 100644 (file)
@@ -488,7 +488,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;