diff Modules/selectmodule.c @ 26153:6078abc69036 legacy-trunk

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.
author Walter Dörwald <walter@livinglogic.de>
date Tue, 12 Nov 2002 11:42:20 +0000
parents d4ff9841417a
children e270c0d41a05
line wrap: on
line diff
--- a/Modules/selectmodule.c	Tue Nov 12 06:04:39 2002 +0000
+++ b/Modules/selectmodule.c	Tue Nov 12 11:42:20 2002 +0000
@@ -470,7 +470,7 @@
 		tout = PyNumber_Int(tout);
 		if (!tout)
 			return NULL;
-		timeout = PyInt_AS_LONG(tout);
+		timeout = PyInt_AsLong(tout);
 		Py_DECREF(tout);
 	}