[Python-checkins] python/dist/src/Objects unicodeobject.c,2.124.6.14,2.124.6.15

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Tue, 24 Sep 2002 08:22:32 -0700


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

Modified Files:
      Tag: release22-maint
	unicodeobject.c 
Log Message:
unicode_memchr():  Squashed compiler wng (signed-vs-unsigned comparison).


Index: unicodeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/unicodeobject.c,v
retrieving revision 2.124.6.14
retrieving revision 2.124.6.15
diff -C2 -d -r2.124.6.14 -r2.124.6.15
*** unicodeobject.c	24 Sep 2002 14:06:51 -0000	2.124.6.14
--- unicodeobject.c	24 Sep 2002 15:22:30 -0000	2.124.6.15
***************
*** 4429,4433 ****
  unicode_memchr(const Py_UNICODE *s, Py_UNICODE c, size_t n)
  {
! 	int i;
  	for (i = 0; i<n; ++i)
  		if (s[i]==c)
--- 4429,4433 ----
  unicode_memchr(const Py_UNICODE *s, Py_UNICODE c, size_t n)
  {
! 	size_t i;
  	for (i = 0; i<n; ++i)
  		if (s[i]==c)