commit | e157cf10126db5d560629145a02cd91fc6763733 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sun Jan 01 15:56:20 2012 -0600 |
committer | Benjamin Peterson <benjamin@python.org> | Sun Jan 01 15:56:20 2012 -0600 |
tree | 061c4d107b3fe359b471dddc43d1ccdcad3bf5d6 | |
parent | 9912b395c38b7e4e07e5b169d29afab6fad16374 [diff] |
make switch more robust
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 4756df7..3d8c895 100644 --- 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)