summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2005-09-18 08:17:56 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2005-09-18 08:17:56 (GMT)
commit8b291e2d66390b8511b9e9d861e34714d40d5f5b (patch)
tree4e0df3049c0325ca71aa4298ed5584f281390c96 /Modules
parent9e28107ce8022a7c661b9219fb6e21a9de591b3f (diff)
downloadcpython-8b291e2d66390b8511b9e9d861e34714d40d5f5b.zip
cpython-8b291e2d66390b8511b9e9d861e34714d40d5f5b.tar.gz
cpython-8b291e2d66390b8511b9e9d861e34714d40d5f5b.tar.bz2
Patch #1213831: Fix typo in unicodedata._getcode.
Will backport to Python 2.4.
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 021bacf..be966f0 100644
--- a/Modules/unicodedata.c
+++ b/Modules/unicodedata.c
@@ -820,7 +820,7 @@ _getcode(const char* name, int namelen, Py_UCS4* code)
pos += len;
find_syllable(pos, &len, &T, TCount, 2);
pos += len;
- if (V != -1 && V != -1 && T != -1 && pos-name == namelen) {
+ if (L != -1 && V != -1 && T != -1 && pos-name == namelen) {
*code = SBase + (L*VCount+V)*TCount + T;
return 1;
}