Skip to content

Commit

Permalink
Fix _PyUnicode_CheckConsistency() in release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Nov 1, 2023
1 parent ea99865 commit 830ffd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objects/unicodeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ _PyUnicode_CheckConsistency(PyObject *op, int check_content)
PyUnicode_KIND(ascii),
PyUnicode_GET_LENGTH(ascii),
0, 1);
assert(_PyUnicode_STATE(ascii).embed_null == (pos >= 0));
CHECK(_PyUnicode_STATE(ascii).embed_null == (pos >= 0));
}

return 1;
Expand Down

0 comments on commit 830ffd5

Please sign in to comment.