From: Benjamin Peterson Date: Sun, 1 Jan 2012 21:56:20 +0000 (-0600) Subject: make switch more robust X-Git-Tag: v3.3.0a1~494 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e157cf10126db5d560629145a02cd91fc6763733;p=thirdparty%2FPython%2Fcpython.git make switch more robust --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 4756df7db268..3d8c8952f376 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)