mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
make switch more robust
This commit is contained in:
parent
9912b395c3
commit
e157cf1012
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue