Skip to content

Commit 53e2248

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 <[email protected]>
1 parent ea6b322 commit 53e2248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_ctypes/callproc.c

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

0 commit comments

Comments
 (0)