diff options
-rw-r--r-- | Modules/unicodedata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c index 269ba57..330b376 100644 --- a/Modules/unicodedata.c +++ b/Modules/unicodedata.c @@ -326,7 +326,7 @@ _getucname(Py_UCS4 code, char* buffer, int buflen) int word; unsigned char* w; - if (SBase <= code && code <= SBase+SCount) { + if (SBase <= code && code < SBase+SCount) { /* Hangul syllable. */ int SIndex = code - SBase; int L = SIndex / NCount; |