diff -r 8ccb3ad39ee4 Modules/unicodedata.c --- a/Modules/unicodedata.c Sun Feb 05 22:58:46 2017 +0200 +++ b/Modules/unicodedata.c Mon Feb 06 14:43:29 2017 +0900 @@ -688,8 +688,8 @@ code = SBase + (LIndex*VCount+VIndex)*TCount; i+=2; if (i < len && - TBase <= PyUnicode_READ(kind, data, i) && - PyUnicode_READ(kind, data, i) <= (TBase+TCount)) { + TBase < PyUnicode_READ(kind, data, i) && + PyUnicode_READ(kind, data, i) < (TBase+TCount)) { code += PyUnicode_READ(kind, data, i)-TBase; i++; }