]> granicus.if.org Git - python/commitdiff
Kill a warning on the SGI compiler.
authorFred Drake <fdrake@acm.org>
Thu, 19 Jul 2001 21:11:13 +0000 (21:11 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 19 Jul 2001 21:11:13 +0000 (21:11 +0000)
This is part of SF patch #434992.

Modules/unicodedata.c

index 69345ea32b508b72d81291ad3f61c682a8828d83..4711123eb2e1f4ea90c07f46d3b78908f0d5ca19 100644 (file)
@@ -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 */