From 90fa5ed96578d393525e1a9fffb888085305bb0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Tue, 12 Nov 2002 11:42:20 +0000 Subject: 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. --- Modules/selectmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules/selectmodule.c') 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); } -- cgit v1.2.1