summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2018-12-03 08:31:35 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2018-12-03 08:31:35 (GMT)
commit062cbb67726f26794b1b461853e40696b4a0b220 (patch)
tree1f693d7625eff5143ce92d81e9c954ae71f3d46b
parentc667b094ae37799a7e42ba5cd2ad501cc7920888 (diff)
downloadcpython-062cbb67726f26794b1b461853e40696b4a0b220.zip
cpython-062cbb67726f26794b1b461853e40696b4a0b220.tar.gz
cpython-062cbb67726f26794b1b461853e40696b4a0b220.tar.bz2
bpo-10320: Replace nonstandard sprintf() length modifier in ctypes' PyCArg_repr(). (GH-10853)
Use "ll" instead of the nonstandard "q".
-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 d485c58..ad40ca1 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;