summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-10-06 11:27:56 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-10-06 11:27:56 (GMT)
commit200f21340d333f3204ef514bcb0890a2b62c7f5e (patch)
tree73c5e62234609a360bf4c19163c0a05980dabd5a /Objects
parent207dc73ece527d96c2e3b0b0301d4c36a451bb26 (diff)
downloadcpython-200f21340d333f3204ef514bcb0890a2b62c7f5e.zip
cpython-200f21340d333f3204ef514bcb0890a2b62c7f5e.tar.gz
cpython-200f21340d333f3204ef514bcb0890a2b62c7f5e.tar.bz2
Fix assertion in unicode_adjust_maxchar()
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 72007d9..4e4e53c 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -1791,7 +1791,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);