summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-12-03 09:11:37 (GMT)
committerGitHub <noreply@github.com>2018-12-03 09:11:37 (GMT)
commitf65ede3f8fa08493facf48177540d0ec26e59560 (patch)
treea995e8539c90393baa4fd37b9c7ae96aa03ebad9
parent013832ff964a0b3b59e04a07a33bae65c1c3ae84 (diff)
downloadcpython-f65ede3f8fa08493facf48177540d0ec26e59560.zip
cpython-f65ede3f8fa08493facf48177540d0ec26e59560.tar.gz
cpython-f65ede3f8fa08493facf48177540d0ec26e59560.tar.bz2
bpo-10320: Replace nonstandard sprintf() length modifier in ctypes' PyCArg_repr(). (GH-10853)
Use "ll" instead of the nonstandard "q". (cherry picked from commit 062cbb67726f26794b1b461853e40696b4a0b220) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
-rw-r--r--Modules/_ctypes/callproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c
index e6079e9..04fbc01 100644
--- a/Modules/_ctypes/callproc.c
+++ b/Modules/_ctypes/callproc.c
@@ -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;