commit | 55c7e00fc031956216b5ce8aa20bebc2416ef723 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Tue Oct 18 23:32:53 2011 +0200 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Tue Oct 18 23:32:53 2011 +0200 |
tree | e5aa69415c31a06bdfac866592ab970fbdcc4f85 | |
parent | 6707293e750436fedd3a5fac1ca7057b14112d5b [diff] [blame] |
Simplify _PyUnicode_COMPACT_DATA() macro
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index 99ec44c..4e492dd 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h
@@ -452,7 +452,7 @@ /* 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)))