From e157cf10126db5d560629145a02cd91fc6763733 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 1 Jan 2012 15:56:20 -0600 Subject: make switch more robust --- Objects/unicodeobject.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ PyUnicode_Join(PyObject *separator, PyObject *seq) 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) -- cgit v0.12