[Python-checkins] CVS: python/dist/src/Objects unicodeobject.c,2.7,2.8

Guido van Rossum python-dev@python.org
Thu, 6 Apr 2000 14:18:13 -0400 (EDT)


Update of /projects/cvsroot/python/dist/src/Objects
In directory eric:/projects/python/develop/guido/src/Objects

Modified Files:
	unicodeobject.c 
Log Message:
Conrad Huang points out that "if (0 < ch < 256)", while legal C,
doesn't mean what the Python programmer thought...


Index: unicodeobject.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Objects/unicodeobject.c,v
retrieving revision 2.7
retrieving revision 2.8
diff -C2 -r2.7 -r2.8
*** unicodeobject.c	2000/04/05 21:29:50	2.7
--- unicodeobject.c	2000/04/06 18:18:10	2.8
***************
*** 1959,1963 ****
  	    continue;
  	}
! 	if (0 < ch < 256) {
  	    *output++ = (char) ch;
  	    continue;
--- 1959,1963 ----
  	    continue;
  	}
! 	if (0 < ch && ch < 256) {
  	    *output++ = (char) ch;
  	    continue;