commit | e55ad2dff05c524865c9c1767abd03deaf8f064a | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Wed Oct 12 00:36:51 2011 +0200 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Wed Oct 12 00:36:51 2011 +0200 |
tree | 0813d11911ba95c4ab70137adb097863fc41f8f3 | |
parent | d218bf14ccf60f659180229b625c16d2caf2a7c5 [diff] |
Relax condition
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 1042254..6740a75 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -1837,7 +1837,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);