mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Simplify _PyUnicode_COMPACT_DATA() macro
This commit is contained in:
parent
6707293e75
commit
55c7e00fc0
1 changed files with 1 additions and 1 deletions
|
@ -452,7 +452,7 @@ enum PyUnicode_Kind {
|
||||||
|
|
||||||
/* Return a void pointer to the raw unicode buffer. */
|
/* Return a void pointer to the raw unicode buffer. */
|
||||||
#define _PyUnicode_COMPACT_DATA(op) \
|
#define _PyUnicode_COMPACT_DATA(op) \
|
||||||
(PyUnicode_IS_COMPACT_ASCII(op) ? \
|
(PyUnicode_IS_ASCII(op) ? \
|
||||||
((void*)((PyASCIIObject*)(op) + 1)) : \
|
((void*)((PyASCIIObject*)(op) + 1)) : \
|
||||||
((void*)((PyCompactUnicodeObject*)(op) + 1)))
|
((void*)((PyCompactUnicodeObject*)(op) + 1)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue