diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2011-10-07 20:55:35 +0200 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2011-10-07 20:55:35 +0200 |
commit | c47adb04b30feea670e87b28efb286db11babaa6 (patch) | |
tree | 7b7a3c7fa6227d578a4f1bddac23163170a95c10 /Objects/stringlib/eq.h | |
parent | PyUnicode_Join() calls directly memcpy() if all strings are of the same kind (diff) | |
download | cpython-c47adb04b30feea670e87b28efb286db11babaa6.tar.gz cpython-c47adb04b30feea670e87b28efb286db11babaa6.tar.bz2 cpython-c47adb04b30feea670e87b28efb286db11babaa6.zip |
Change PyUnicode_KIND to 1,2,4. Drop _KIND_SIZE and _CHARACTER_SIZE.
Diffstat (limited to 'Objects/stringlib/eq.h')
-rw-r--r-- | Objects/stringlib/eq.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringlib/eq.h b/Objects/stringlib/eq.h index dd67128a85c..8e79a43f72f 100644 --- a/Objects/stringlib/eq.h +++ b/Objects/stringlib/eq.h @@ -30,5 +30,5 @@ unicode_eq(PyObject *aa, PyObject *bb) PyUnicode_GET_LENGTH(a) == 1) return 1; return memcmp(PyUnicode_1BYTE_DATA(a), PyUnicode_1BYTE_DATA(b), - PyUnicode_GET_LENGTH(a) * PyUnicode_CHARACTER_SIZE(a)) == 0; + PyUnicode_GET_LENGTH(a) * PyUnicode_KIND(a)) == 0; } |