Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba6bafc

Browse files
committed
Fix compile failure under Windows
1 parent c516610 commit ba6bafc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/unicodeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1652,7 +1652,7 @@ unicode_write_cstr(PyObject *unicode, Py_ssize_t index, const char *str)
16521652
case PyUnicode_1BYTE_KIND: {
16531653
Py_ssize_t len = strlen(str);
16541654
assert(index + len <= PyUnicode_GET_LENGTH(unicode));
1655-
memcpy(data + index, str, len);
1655+
memcpy((char *) data + index, str, len);
16561656
return len;
16571657
}
16581658
case PyUnicode_2BYTE_KIND: {

0 commit comments

Comments
 (0)