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.
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 @@
 		tout = PyNumber_Int(tout);
 		if (!tout)
 			return NULL;
-		timeout = PyInt_AS_LONG(tout);
+		timeout = PyInt_AsLong(tout);
 		Py_DECREF(tout);
 	}