]> granicus.if.org Git - python/commitdiff
Use PyInt_AsLong instead of PyInt_AS_LONG after the call to
authorWalter Dörwald <walter@livinglogic.de>
Tue, 12 Nov 2002 11:42:20 +0000 (11:42 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Tue, 12 Nov 2002 11:42:20 +0000 (11:42 +0000)
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.

Modules/selectmodule.c

index 59653dea30f917bd8b80dd626453dfdfafc4dc09..805dc1a61d1e7da69455dcf0beab9e51065f599b 100644 (file)
@@ -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);
        }