[Python-checkins] CVS: python/dist/src/Objects intobject.c,2.55,2.56

Martin v. L?wis loewis@users.sourceforge.net
Tue, 06 Mar 2001 04:12:04 -0800


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

Modified Files:
	intobject.c 
Log Message:
Use Py_CHARMASK for ctype macros. Fixes bug #232787.


Index: intobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/intobject.c,v
retrieving revision 2.55
retrieving revision 2.56
diff -C2 -r2.55 -r2.56
*** intobject.c	2001/01/17 15:32:23	2.55
--- intobject.c	2001/03/06 12:12:02	2.56
***************
*** 183,187 ****
  	else
  		x = PyOS_strtol(s, &end, base);
! 	if (end == s || !isalnum(end[-1]))
  		goto bad;
  	while (*end && isspace(Py_CHARMASK(*end)))
--- 183,187 ----
  	else
  		x = PyOS_strtol(s, &end, base);
! 	if (end == s || !isalnum(Py_CHARMASK(end[-1])))
  		goto bad;
  	while (*end && isspace(Py_CHARMASK(*end)))