commit | 24e403bbeea07bdf1843403f5cef371bce715801 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Sat Jun 16 04:53:00 2012 +0200 |
committer | Victor Stinner <victor.stinner@gmail.com> | Sat Jun 16 04:53:00 2012 +0200 |
tree | 1e64bef3f57674aa149cc8a56a2df4040f40130b | |
parent | 81c39a88a4c692a1110d9b1e4ae05410cf34f4c8 [diff] [blame] |
Oops, fix my previous change on _copy_characters()
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index ad0e2e3..d5d83fd 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -1254,10 +1254,10 @@ 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); }