Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 72747:bc2a43943507
Fix assertion in unicode_adjust_maxchar()
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Thu, 06 Oct 2011 13:27:56 +0200 |
| parents | 3636a39fa557 |
| children | 542c8da10de9 |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Thu Oct 06 13:23:50 2011 +0200 +++ b/Objects/unicodeobject.c Thu Oct 06 13:27:56 2011 +0200 @@ -1791,7 +1791,7 @@ } } } - 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);
