From: Fred Drake Date: Thu, 19 Jul 2001 21:11:13 +0000 (+0000) Subject: Kill a warning on the SGI compiler. X-Git-Tag: v2.2a3~1038 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6a16ea07b8159c39e3433d32e5d8efb10aec06c8;p=thirdparty%2FPython%2Fcpython.git Kill a warning on the SGI compiler. This is part of SF patch #434992. --- diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c index 69345ea32b50..4711123eb2e1 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 */