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

Miss Islington (bot) webhook-mailer at python.org
Mon Dec 3 04:11:40 EST 2018


https://github.com/python/cpython/commit/f65ede3f8fa08493facf48177540d0ec26e59560
commit: f65ede3f8fa08493facf48177540d0ec26e59560
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018年12月03日T01:11:37-08:00
summary:
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 at gmail.com>
files:
M Modules/_ctypes/callproc.c
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c
index e6079e9938ce..04fbc010ca7d 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 によって変換されたページ (->オリジナル) /