[Python-checkins] python/dist/src/Modules selectmodule.c,2.70,2.71

doerwalter@users.sourceforge.net doerwalter@users.sourceforge.net
Tue, 12 Nov 2002 03:42:23 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv14761/Modules

Modified Files:
	selectmodule.c 
Log Message:
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.


Index: selectmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/selectmodule.c,v
retrieving revision 2.70
retrieving revision 2.71
diff -C2 -d -r2.70 -r2.71
*** selectmodule.c	24 Sep 2002 17:03:26 -0000	2.70
--- selectmodule.c	12 Nov 2002 11:42:20 -0000	2.71
***************
*** 471,475 ****
  		if (!tout)
  			return NULL;
! 		timeout = PyInt_AS_LONG(tout);
  		Py_DECREF(tout);
  	}
--- 471,475 ----
  		if (!tout)
  			return NULL;
! 		timeout = PyInt_AsLong(tout);
  		Py_DECREF(tout);
  	}