From: Victor Stinner Date: Thu, 6 Oct 2011 11:27:56 +0000 (+0200) Subject: Fix assertion in unicode_adjust_maxchar() X-Git-Tag: v3.3.0a1~1288 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=200f21340d333f3204ef514bcb0890a2b62c7f5e;p=thirdparty%2FPython%2Fcpython.git Fix assertion in unicode_adjust_maxchar() --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 72007d9b3226..4e4e53cfd483 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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);