]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-10320: Use PY_FORMAT_LONG_LONG in ctypes' PyCArg_repr(). (GH-11230)
authorZackery Spytz <zspytz@gmail.com>
Wed, 19 Dec 2018 06:01:38 +0000 (23:01 -0700)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 19 Dec 2018 06:01:38 +0000 (08:01 +0200)
Modules/_ctypes/callproc.c

index ff2a7da4246f833a6bb02a1f604e9131a5092787..2097342085788ecf7af988ea007e4e6d9ac26b6b 100644 (file)
@@ -485,11 +485,7 @@ PyCArg_repr(PyCArgObject *self)
     case 'q':
     case 'Q':
         sprintf(buffer,
-#ifdef MS_WIN32
-            "<cparam '%c' (%I64d)>",
-#else
-            "<cparam '%c' (%lld)>",
-#endif
+            "<cparam '%c' (%" PY_FORMAT_LONG_LONG "d)>",
             self->tag, self->value.q);
         break;
 #endif