diff options
author | Walter Dörwald <walter@livinglogic.de> | 2002-11-12 11:42:20 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2002-11-12 11:42:20 (GMT) |
commit | 08c4cc41276f0c6f17f304ae65bd3fa35079e526 (patch) | |
tree | 1d8694d82b41ac8387a709c95edee3cfba972e85 /Modules/selectmodule.c | |
parent | 678fc1ee7df0932a6c65d3f98a510d3af1f6a8d0 (diff) | |
download | cpython-08c4cc41276f0c6f17f304ae65bd3fa35079e526.zip cpython-08c4cc41276f0c6f17f304ae65bd3fa35079e526.tar.gz cpython-08c4cc41276f0c6f17f304ae65bd3fa35079e526.tar.bz2 |
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.c | 2 |
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); } |