diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-12-18 15:51:04 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-18 15:51:04 -0800 |
commit | 53e2248a94cd89e65326c5cfd400f74a88552d8c (patch) | |
tree | 9c9bde842cd1467e0c9f3a6eb915d34063dcbe94 | |
parent | ea6b322829c62951362f267d7afdd262aa2b3e2c (diff) | |
download | cpython-git-53e2248a94cd89e65326c5cfd400f74a88552d8c.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c index 63f3c21784..ff2a7da424 100644 --- a/Modules/_ctypes/callproc.c +++ b/Modules/_ctypes/callproc.c @@ -488,7 +488,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; |