From: Victor Stinner Date: Tue, 18 Oct 2011 21:32:53 +0000 (+0200) Subject: Simplify _PyUnicode_COMPACT_DATA() macro X-Git-Tag: v3.3.0a1~1138 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=55c7e00fc031956216b5ce8aa20bebc2416ef723;p=thirdparty%2FPython%2Fcpython.git Simplify _PyUnicode_COMPACT_DATA() macro --- diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 99ec44c7ae24..4e492dde344d 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -452,7 +452,7 @@ enum PyUnicode_Kind { /* Return a void pointer to the raw unicode buffer. */ #define _PyUnicode_COMPACT_DATA(op) \ - (PyUnicode_IS_COMPACT_ASCII(op) ? \ + (PyUnicode_IS_ASCII(op) ? \ ((void*)((PyASCIIObject*)(op) + 1)) : \ ((void*)((PyCompactUnicodeObject*)(op) + 1)))