[Python-checkins] CVS: python/dist/src/Objects intobject.c,2.52,2.52.2.1
Moshe Zadka
moshez@users.sourceforge.net
Fri, 30 Mar 2001 23:33:58 -0800
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv860/Objects
Modified Files:
Tag: release20-maint
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.52
retrieving revision 2.52.2.1
diff -C2 -r2.52 -r2.52.2.1
*** intobject.c 2000/10/06 00:36:09 2.52
--- intobject.c 2001/03/31 07:33:56 2.52.2.1
***************
*** 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)))