Skip to content

Commit 9ff8d7b

Browse files
lukasstadlerfangerer
authored andcommitted
merge fix in unicodeobject.c
1 parent d12ff77 commit 9ff8d7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python.cext/src/unicodeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ PyUnicodeObject* unicode_subtype_new(PyTypeObject *type, PyObject *unicode) {
109109
_PyUnicode_STATE(self).interned = 0;
110110
_PyUnicode_STATE(self).kind = kind;
111111
_PyUnicode_STATE(self).compact = 0;
112-
_PyUnicode_STATE(self).ascii = _PyUnicode_STATE(unicode).ascii;
112+
_PyUnicode_STATE(self).ascii = GET_SLOT_SPECIAL(unicode, PyASCIIObject, state_ascii, state.ascii);
113113
_PyUnicode_STATE(self).ready = 1;
114114
_PyUnicode_WSTR(self) = NULL;
115115
_PyUnicode_UTF8_LENGTH(self) = 0;

0 commit comments

Comments
 (0)