diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 59653dea30f..805dc1a61d1 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -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); }