diff Objects/unicodeobject.c @ 12275:cbfa95a6a03e legacy-trunk

Conrad Huang points out that "if (0 < ch < 256)", while legal C, doesn't mean what the Python programmer thought...
author Guido van Rossum <guido@python.org>
date Thu, 06 Apr 2000 18:18:10 +0000
parents 9eb769e15f81
children 5de0b939fe61
line wrap: on
line diff
--- a/Objects/unicodeobject.c	Thu Apr 06 16:09:59 2000 +0000
+++ b/Objects/unicodeobject.c	Thu Apr 06 18:18:10 2000 +0000
@@ -1958,7 +1958,7 @@
 	    *output++ = '0' + decimal;
 	    continue;
 	}
-	if (0 < ch < 256) {
+	if (0 < ch && ch < 256) {
 	    *output++ = (char) ch;
 	    continue;
 	}