mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
Use PyInt_AsLong instead of PyInt_AS_LONG after the call to
PyNumber_Int, because now PyNumber_Int might return a long, and PyInt_AsLong can handle that, whereas PyInt_AS_LONG can't. This closes SF bug #629989.
This commit is contained in:
parent
678fc1ee7d
commit
08c4cc4127
1 changed files with 1 additions and 1 deletions
|
@ -470,7 +470,7 @@ poll_poll(pollObject *self, PyObject *args)
|
|||
tout = PyNumber_Int(tout);
|
||||
if (!tout)
|
||||
return NULL;
|
||||
timeout = PyInt_AS_LONG(tout);
|
||||
timeout = PyInt_AsLong(tout);
|
||||
Py_DECREF(tout);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue