Skip to content

Commit 830ffd5

Browse files
committed
Fix _PyUnicode_CheckConsistency() in release mode
1 parent ea99865 commit 830ffd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/unicodeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ _PyUnicode_CheckConsistency(PyObject *op, int check_content)
633633
PyUnicode_KIND(ascii),
634634
PyUnicode_GET_LENGTH(ascii),
635635
0, 1);
636-
assert(_PyUnicode_STATE(ascii).embed_null == (pos >= 0));
636+
CHECK(_PyUnicode_STATE(ascii).embed_null == (pos >= 0));
637637
}
638638

639639
return 1;

0 commit comments

Comments
 (0)