]> granicus.if.org Git - python/commitdiff
stupid typo (for some reason, this only caused problems on OpenVMS).
authorFredrik Lundh <fredrik@pythonware.com>
Sun, 18 Feb 2001 11:41:49 +0000 (11:41 +0000)
committerFredrik Lundh <fredrik@pythonware.com>
Sun, 18 Feb 2001 11:41:49 +0000 (11:41 +0000)
Modules/unicodedata.c

index dfe2f7bbfcfe6ab6474e2de5cc96a8d9f59c5454..f138195d06a06d3968b03a020c06debed817fc64 100644 (file)
@@ -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;