]> granicus.if.org Git - python/commitdiff
Simplify _PyUnicode_COMPACT_DATA() macro
authorVictor Stinner <victor.stinner@haypocalc.com>
Tue, 18 Oct 2011 21:32:53 +0000 (23:32 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Tue, 18 Oct 2011 21:32:53 +0000 (23:32 +0200)
Include/unicodeobject.h

index 99ec44c7ae24655c169c5d4e25b491e7f906af5c..4e492dde344d5f8e7c0a79933b0f03cd941c61a0 100644 (file)
@@ -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)))