summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-10-18 21:32:53 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-10-18 21:32:53 (GMT)
commit55c7e00fc031956216b5ce8aa20bebc2416ef723 (patch)
treee5aa69415c31a06bdfac866592ab970fbdcc4f85 /Include
parent6707293e750436fedd3a5fac1ca7057b14112d5b (diff)
downloadcpython-55c7e00fc031956216b5ce8aa20bebc2416ef723.zip
cpython-55c7e00fc031956216b5ce8aa20bebc2416ef723.tar.gz
cpython-55c7e00fc031956216b5ce8aa20bebc2416ef723.tar.bz2
Simplify _PyUnicode_COMPACT_DATA() macro
Diffstat (limited to 'Include')
-rw-r--r--Include/unicodeobject.h2
1 files changed, 1 insertions, 1 deletions
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 @@ 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)))