From 6a16ea07b8159c39e3433d32e5d8efb10aec06c8 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 19 Jul 2001 21:11:13 +0000 Subject: [PATCH] Kill a warning on the SGI compiler. This is part of SF patch #434992. --- Modules/unicodedata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */