summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2001-02-18 11:41:49 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2001-02-18 11:41:49 (GMT)
commitae7636753e15273742515eb123999d23f6b7985e (patch)
treed2b8b0d6ad720422f371c3f84c58cebc7d7d68e2 /Modules
parent3389f1999a38877ed2d115958ef8d14cd24431bf (diff)
downloadcpython-ae7636753e15273742515eb123999d23f6b7985e.zip
cpython-ae7636753e15273742515eb123999d23f6b7985e.tar.gz
cpython-ae7636753e15273742515eb123999d23f6b7985e.tar.bz2
stupid typo (for some reason, this only caused problems on OpenVMS).
Diffstat (limited to 'Modules')
-rw-r--r--Modules/unicodedata.c2
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;