diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-02-28 03:14:37 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-02-28 03:14:37 (GMT) |
commit | e9c571f96847f985ff4abaf1a3f3f9c27f088d6d (patch) | |
tree | 93a56171337ed826fd1adcdcf01f574a75658667 | |
parent | c60968929e162374db536d3d1e8037808b3895ce (diff) | |
download | cpython-e9c571f96847f985ff4abaf1a3f3f9c27f088d6d.zip cpython-e9c571f96847f985ff4abaf1a3f3f9c27f088d6d.tar.gz cpython-e9c571f96847f985ff4abaf1a3f3f9c27f088d6d.tar.bz2 |
Fix SF bug #694816, remove comparison of unsigned value < 0
-rw-r--r-- | Modules/unicodedata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c index e8f9c19..d266ad7 100644 --- a/Modules/unicodedata.c +++ b/Modules/unicodedata.c @@ -33,7 +33,7 @@ static const _PyUnicode_DatabaseRecord* _getrecord_ex(Py_UCS4 code) { int index; - if (code < 0 || code >= 0x110000) + if (code >= 0x110000) index = 0; else { index = index1[(code>>SHIFT)]; @@ -258,7 +258,7 @@ unicodedata_decomposition(PyObject *self, PyObject *args) void get_decomp_record(Py_UCS4 code, int *index, int *prefix, int *count) { - if (code < 0 || code >= 0x110000) { + if (code >= 0x110000) { *index = 0; } else { |