Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae76367

Browse files
author
Fredrik Lundh
committed
stupid typo (for some reason, this only caused problems on OpenVMS).
1 parent 3389f19 commit ae76367

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/unicodedata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ getcode(const char* name, int namelen, Py_UCS4* code)
368368
i = (i + incr) & mask;
369369
v = code_hash[i];
370370
if (!v)
371-
return -1;
371+
return 0;
372372
if (cmpname(v, name, namelen)) {
373373
*code = v;
374374
return 1;

0 commit comments

Comments
 (0)