mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Ugh, hopefully I can get this right. The code is only compiled on Win64
This commit is contained in:
parent
b879f57b32
commit
64fd6fb254
1 changed files with 1 additions and 1 deletions
|
@ -672,7 +672,7 @@ convertsimple(PyObject *arg, const char **p_format, va_list *p_va, int flags,
|
||||||
return converterr("integer<n>", arg, msgbuf, bufsize);
|
return converterr("integer<n>", arg, msgbuf, bufsize);
|
||||||
iobj = PyNumber_Index(arg);
|
iobj = PyNumber_Index(arg);
|
||||||
if (iobj != NULL)
|
if (iobj != NULL)
|
||||||
ival = PyNumber_AsSsize_t(arg);
|
ival = PyInt_AsSsize_t(arg);
|
||||||
if (ival == -1 && PyErr_Occurred())
|
if (ival == -1 && PyErr_Occurred())
|
||||||
return converterr("integer<n>", arg, msgbuf, bufsize);
|
return converterr("integer<n>", arg, msgbuf, bufsize);
|
||||||
*p = ival;
|
*p = ival;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue