diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c index 69345ea32b5..4711123eb2e 100644 --- a/Modules/unicodedata.c +++ b/Modules/unicodedata.c @@ -282,7 +282,7 @@ _getname(Py_UCS4 code, char* buffer, int buflen) int word; unsigned char* w; - if (code < 0 || code >= 65536) + if (code >= 65536) return 0; /* get offset into phrasebook */