From: Antoine Pitrou Date: Tue, 11 Oct 2011 22:36:51 +0000 (+0200) Subject: Relax condition X-Git-Tag: v3.3.0a1~1210 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e55ad2dff05c524865c9c1767abd03deaf8f064a;p=thirdparty%2FPython%2Fcpython.git Relax condition --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 104225443594..6740a75babb2 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1837,7 +1837,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);