Skip to content

Commit 062cbb6

Browse files
ZackerySpytzserhiy-storchaka
authored andcommitted
bpo-10320: Replace nonstandard sprintf() length modifier in ctypes' PyCArg_repr(). (GH-10853)
Use "ll" instead of the nonstandard "q".
1 parent c667b09 commit 062cbb6

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
@@ -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)