mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Fix assertion in unicode_adjust_maxchar()
This commit is contained in:
parent
207dc73ece
commit
200f21340d
1 changed files with 1 additions and 1 deletions
|
|
@ -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 = PyUnicode_New(len, max_char);
|
||||||
copy_characters(copy, 0, unicode, 0, len);
|
copy_characters(copy, 0, unicode, 0, len);
|
||||||
Py_DECREF(unicode);
|
Py_DECREF(unicode);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue