From c47adb04b30feea670e87b28efb286db11babaa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Fri, 7 Oct 2011 20:55:35 +0200 Subject: Change PyUnicode_KIND to 1,2,4. Drop _KIND_SIZE and _CHARACTER_SIZE. --- Objects/stringlib/eq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Objects/stringlib/eq.h') diff --git a/Objects/stringlib/eq.h b/Objects/stringlib/eq.h index dd67128a85..8e79a43f72 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; } -- cgit v1.2.1