[Python-checkins] cpython: Fix assertion in unicode_adjust_maxchar()
victor.stinner
python-checkins at python.org
Thu Oct 6 13:30:11 CEST 2011
http://hg.python.org/cpython/rev/bc2a43943507
changeset: 72747:bc2a43943507
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Thu Oct 06 13:27:56 2011 +0200
summary:
Fix assertion in unicode_adjust_maxchar()
files:
Objects/unicodeobject.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -1791,7 +1791,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);
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list