summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 6740a75..1042254 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);