From 24e403bbeea07bdf1843403f5cef371bce715801 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 16 Jun 2012 04:53:00 +0200 Subject: [PATCH] Oops, fix my previous change on _copy_characters() --- Objects/unicodeobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index ad0e2e3843c..d5d83fde3c8 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1254,10 +1254,10 @@ _copy_characters(PyObject *to, Py_ssize_t to_start, for (i=0; i < how_many; i++) { ch = PyUnicode_READ(from_kind, from_data, from_start + i); #ifndef Py_DEBUG - assert(ch <= to_maxchar); -#else if (ch > to_maxchar) return -1; +#else + assert(ch <= to_maxchar); #endif PyUnicode_WRITE(to_kind, to_data, to_start + i, ch); }