summaryrefslogtreecommitdiff
path: root/Modules/selectmodule.c
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2002-11-12 11:42:20 +0000
committerWalter Dörwald <walter@livinglogic.de>2002-11-12 11:42:20 +0000
commit90fa5ed96578d393525e1a9fffb888085305bb0b (patch)
treeca9f9c11011f62f8456624aa36eda80bcc83c035 /Modules/selectmodule.c
parent168a489778f6613ff7ac01257f031e1f935b6d92 (diff)
downloadcpython-90fa5ed96578d393525e1a9fffb888085305bb0b.tar.gz
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.
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 59653dea30..805dc1a61d 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);
}