[Python-checkins] CVS: python/dist/src/Modules _hotshot.c,1.15,1.16 pyexpat.c,2.58,2.59 stropmodule.c,2.84,2.85
Neal Norwitz
nnorwitz@users.sourceforge.net
Wed, 20 Mar 2002 13:32:09 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv5936/Modules
Modified Files:
_hotshot.c pyexpat.c stropmodule.c
Log Message:
Remove compiler warnings on Solaris 8.
Can go into 2.2.x, but not necessary.
Index: _hotshot.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/_hotshot.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** _hotshot.c 3 Mar 2002 02:59:15 -0000 1.15
--- _hotshot.c 20 Mar 2002 21:32:07 -0000 1.16
***************
*** 1454,1458 ****
int i = 0;
! while (*rev && !isdigit(*rev))
++rev;
while (rev[i] != ' ' && rev[i] != '\0')
--- 1454,1458 ----
int i = 0;
! while (*rev && !isdigit((int)*rev))
++rev;
while (rev[i] != ' ' && rev[i] != '\0')
Index: pyexpat.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/pyexpat.c,v
retrieving revision 2.58
retrieving revision 2.59
diff -C2 -d -r2.58 -r2.59
*** pyexpat.c 11 Feb 2002 23:27:45 -0000 2.58
--- pyexpat.c 20 Mar 2002 21:32:07 -0000 2.59
***************
*** 1367,1371 ****
int i = 0;
! while (!isdigit(*rev))
++rev;
while (rev[i] != ' ' && rev[i] != '\0')
--- 1367,1371 ----
int i = 0;
! while (!isdigit((int)*rev))
++rev;
while (rev[i] != ' ' && rev[i] != '\0')
Index: stropmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/stropmodule.c,v
retrieving revision 2.84
retrieving revision 2.85
diff -C2 -d -r2.84 -r2.85
*** stropmodule.c 28 Nov 2001 22:07:30 -0000 2.84
--- stropmodule.c 20 Mar 2002 21:32:07 -0000 2.85
***************
*** 767,771 ****
else
x = PyOS_strtol(s, &end, base);
! if (end == s || !isalnum(end[-1]))
goto bad;
while (*end && isspace(Py_CHARMASK(*end)))
--- 767,771 ----
else
x = PyOS_strtol(s, &end, base);
! if (end == s || !isalnum((int)end[-1]))
goto bad;
while (*end && isspace(Py_CHARMASK(*end)))