summaryrefslogtreecommitdiffstats
path: root/Modules/selectmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/selectmodule.c')
-rw-r--r--Modules/selectmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c
index 59653de..805dc1a 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);
}