[Python-checkins] bpo-10320: Replace nonstandard sprintf() length modifier in ctypes' PyCArg_repr(). (GH-10853)

Serhiy Storchaka webhook-mailer at python.org
Mon Dec 3 03:31:38 EST 2018


https://github.com/python/cpython/commit/062cbb67726f26794b1b461853e40696b4a0b220
commit: 062cbb67726f26794b1b461853e40696b4a0b220
branch: master
author: Zackery Spytz <zspytz at gmail.com>
committer: Serhiy Storchaka <storchaka at gmail.com>
date: 2018年12月03日T10:31:35+02:00
summary:
bpo-10320: Replace nonstandard sprintf() length modifier in ctypes' PyCArg_repr(). (GH-10853)
Use "ll" instead of the nonstandard "q".
files:
M Modules/_ctypes/callproc.c
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c
index d485c58e8c01..ad40ca1c5247 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;


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /