commit | ba47704943137318229ad9a4bba6a93aa0ba1d29 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Apr 06 18:18:10 2000 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Apr 06 18:18:10 2000 +0000 |
tree | c8018e8f07be7fbfe585e70e57f3b530166ec316 | |
parent | 69ca950d1ff6a5344f1680846af85facfdf7bc14 [diff] |
Conrad Huang points out that "if (0 < ch < 256)", while legal C, doesn't mean what the Python programmer thought...
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index b876f34..e4bbcff 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -1958,7 +1958,7 @@ *output++ = '0' + decimal; continue; } - if (0 < ch < 256) { + if (0 < ch && ch < 256) { *output++ = (char) ch; continue; }