]> granicus.if.org Git - python/commitdiff
Relax condition
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 11 Oct 2011 22:36:51 +0000 (00:36 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 11 Oct 2011 22:36:51 +0000 (00:36 +0200)
Objects/unicodeobject.c

index 10422544359478a72726a12bf3435009f07c4efe..6740a75babb29ef308e8f5d0e511898b875f4355 100644 (file)
@@ -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);