[Python-checkins] cpython: make switch more robust
benjamin.peterson
python-checkins at python.org
Sun Jan 1 22:56:32 CET 2012
http://hg.python.org/cpython/rev/86e2603f6adb
changeset: 74229:86e2603f6adb
user: Benjamin Peterson <benjamin at python.org>
date: Sun Jan 01 15:56:20 2012 -0600
summary:
make switch more robust
files:
Objects/unicodeobject.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -9799,10 +9799,11 @@
for (; i_ < (length); ++i_, ++to_) *to_ = (value); \
break; \
} \
- default: { \
+ case PyUnicode_4BYTE_KIND: { \
Py_UCS4 * to_ = (Py_UCS4 *)((data)) + (start); \
for (; i_ < (length); ++i_, ++to_) *to_ = (value); \
break; \
+ default: assert(0); \
} \
} \
} while (0)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list