Commit 08c4cc41 authored by Walter Dörwald's avatar Walter Dörwald

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.
parent 678fc1ee
...@@ -470,7 +470,7 @@ poll_poll(pollObject *self, PyObject *args) ...@@ -470,7 +470,7 @@ poll_poll(pollObject *self, PyObject *args)
tout = PyNumber_Int(tout); tout = PyNumber_Int(tout);
if (!tout) if (!tout)
return NULL; return NULL;
timeout = PyInt_AS_LONG(tout); timeout = PyInt_AsLong(tout);
Py_DECREF(tout); Py_DECREF(tout);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment