]> granicus.if.org Git - python/commitdiff
bpo-10320: Replace nonstandard sprintf() length modifier in ctypes' PyCArg_repr(...
authorZackery Spytz <zspytz@gmail.com>
Mon, 3 Dec 2018 08:31:35 +0000 (01:31 -0700)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 3 Dec 2018 08:31:35 +0000 (10:31 +0200)
Use "ll" instead of the nonstandard "q".

Modules/_ctypes/callproc.c

index d485c58e8c01d1ca03533dafde5265566acf5196..ad40ca1c524743bfd7aaed7b7fff15df42b9f229 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;