Skip to content

Commit a9f435e

Browse files
bpo-10320: Replace nonstandard sprintf() length modifier in ctypes' PyCArg_repr(). (GH-10853)
Use "ll" instead of the nonstandard "q". (cherry picked from commit 062cbb6) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
1 parent bdeb56c commit a9f435e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_ctypes/callproc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ PyCArg_repr(PyCArgObject *self)
484484
#ifdef MS_WIN32
485485
"<cparam '%c' (%I64d)>",
486486
#else
487-
"<cparam '%c' (%qd)>",
487+
"<cparam '%c' (%lld)>",
488488
#endif
489489
self->tag, self->value.q);
490490
break;

0 commit comments

Comments
 (0)