From: Fredrik Lundh Date: Sun, 18 Feb 2001 11:41:49 +0000 (+0000) Subject: stupid typo (for some reason, this only caused problems on OpenVMS). X-Git-Tag: v2.1b1~306 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae7636753e15273742515eb123999d23f6b7985e;p=thirdparty%2FPython%2Fcpython.git stupid typo (for some reason, this only caused problems on OpenVMS). --- diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c index dfe2f7bbfcfe..f138195d06a0 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;