diff options
Diffstat (limited to 'Modules')
-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 dfe2f7b..f138195 100644 --- a/Modules/unicodedata.c +++ b/Modules/unicodedata.c @@ -368,7 +368,7 @@ getcode(const char* name, int namelen, Py_UCS4* code) i = (i + incr) & mask; v = code_hash[i]; if (!v) - return -1; + return 0; if (cmpname(v, name, namelen)) { *code = v; return 1; |