[Python-checkins] cpython: Simplify _PyUnicode_COMPACT_DATA() macro

victor.stinner python-checkins at python.org
Tue Oct 18 23:31:59 CEST 2011


http://hg.python.org/cpython/rev/cade7c20c728
changeset:   72980:cade7c20c728
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Tue Oct 18 23:32:53 2011 +0200
summary:
  Simplify _PyUnicode_COMPACT_DATA() macro

files:
  Include/unicodeobject.h |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
--- 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)))
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list