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

Use "ll" instead of the nonstandard "q".
This commit is contained in:
Zackery Spytz 2018-12-03 01:31:35 -07:00 committed by Serhiy Storchaka
parent c667b094ae
commit 062cbb6772
1 changed files with 1 additions and 1 deletions

View File

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