]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch #1213831: Fix typo in unicodedata._getcode.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 18 Sep 2005 08:18:51 +0000 (08:18 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 18 Sep 2005 08:18:51 +0000 (08:18 +0000)
Misc/NEWS
Modules/unicodedata.c

index 793c4c35350eca8e4ad45e1226c1a49b4c1f6ba4..98a1e1478c9031a2b3e5e52b829cc0d97cff50af 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -65,6 +65,8 @@ Core and builtins
 Extension Modules
 -----------------
 
+- Patch #1213831: Fix typo in unicodedata._getcode.
+
 - Bug #1007046: os.startfile() did not accept unicode strings encoded in
   the file system encoding.
 
index 4a1e94c83c74a1e67d79f00b1e428dcabaebbd50..85f5f5f9df578e0c5fca886976ca6ec22a787b1e 100644 (file)
@@ -753,7 +753,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;
        }