mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Fix compile failure under Windows
This commit is contained in:
parent
c516610f0b
commit
ba6bafcfbe
1 changed files with 1 additions and 1 deletions
|
@ -1652,7 +1652,7 @@ unicode_write_cstr(PyObject *unicode, Py_ssize_t index, const char *str)
|
||||||
case PyUnicode_1BYTE_KIND: {
|
case PyUnicode_1BYTE_KIND: {
|
||||||
Py_ssize_t len = strlen(str);
|
Py_ssize_t len = strlen(str);
|
||||||
assert(index + len <= PyUnicode_GET_LENGTH(unicode));
|
assert(index + len <= PyUnicode_GET_LENGTH(unicode));
|
||||||
memcpy(data + index, str, len);
|
memcpy((char *) data + index, str, len);
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
case PyUnicode_2BYTE_KIND: {
|
case PyUnicode_2BYTE_KIND: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue