diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-11 22:36:51 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-11 22:36:51 (GMT) |
commit | e55ad2dff05c524865c9c1767abd03deaf8f064a (patch) | |
tree | 0813d11911ba95c4ab70137adb097863fc41f8f3 /Objects | |
parent | d218bf14ccf60f659180229b625c16d2caf2a7c5 (diff) | |
download | cpython-e55ad2dff05c524865c9c1767abd03deaf8f064a.zip cpython-e55ad2dff05c524865c9c1767abd03deaf8f064a.tar.gz cpython-e55ad2dff05c524865c9c1767abd03deaf8f064a.tar.bz2 |
Relax condition
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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); |