Replace PyNumber_Int with PyNumber_Long.

This commit is contained in:
Mark Dickinson 2009-01-17 21:57:11 +00:00
parent e4bc7f69c2
commit 17c7cd8d02
4 changed files with 6 additions and 6 deletions

View file

@ -515,7 +515,7 @@ poll_poll(pollObject *self, PyObject *args)
return NULL;
}
else {
tout = PyNumber_Int(tout);
tout = PyNumber_Long(tout);
if (!tout)
return NULL;
timeout = PyLong_AsLong(tout);