commit | 200f21340d333f3204ef514bcb0890a2b62c7f5e | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Thu Oct 06 13:27:56 2011 +0200 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Thu Oct 06 13:27:56 2011 +0200 |
tree | 73c5e62234609a360bf4c19163c0a05980dabd5a | |
parent | 207dc73ece527d96c2e3b0b0301d4c36a451bb26 [diff] [blame] |
Fix assertion in unicode_adjust_maxchar()
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 72007d9..4e4e53c 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -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);