Commit 200f2134 authored by Victor Stinner's avatar Victor Stinner

Fix assertion in unicode_adjust_maxchar()

parent 207dc73e
......@@ -1791,7 +1791,7 @@ unicode_adjust_maxchar(PyObject **p_unicode)
}
}
}
assert(max_char > PyUnicode_MAX_CHAR_VALUE(unicode));
assert(max_char < PyUnicode_MAX_CHAR_VALUE(unicode));
copy = PyUnicode_New(len, max_char);
copy_characters(copy, 0, unicode, 0, len);
Py_DECREF(unicode);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment