Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 55c7e00

Browse files
author
Victor Stinner
committed
Simplify _PyUnicode_COMPACT_DATA() macro
1 parent 6707293 commit 55c7e00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Include/unicodeobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ enum PyUnicode_Kind {
452452

453453
/* Return a void pointer to the raw unicode buffer. */
454454
#define _PyUnicode_COMPACT_DATA(op) \
455-
(PyUnicode_IS_COMPACT_ASCII(op) ? \
455+
(PyUnicode_IS_ASCII(op) ? \
456456
((void*)((PyASCIIObject*)(op) + 1)) : \
457457
((void*)((PyCompactUnicodeObject*)(op) + 1)))
458458

0 commit comments

Comments
 (0)