[issue42593] Consistency in unicode string multiplication with an integer

STINNER Victor report at bugs.python.org
Mon Dec 7 16:53:35 EST 2020


STINNER Victor <vstinner at python.org> added the comment:

+        Py_UCS4 fill_char = PyUnicode_READ(char_size, PyUnicode_DATA(str), 0);
+        memset(to, fill_char, len);

The second parameter of memset() is a byte (8-bit "octet"). You cannot pass Py_UCS4 to memset(), it doesn't work.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42593>
_______________________________________


More information about the Python-bugs-list mailing list