From: Antoine Pitrou Date: Wed, 22 Feb 2012 15:41:50 +0000 (+0100) Subject: Fix compile failure under Windows X-Git-Tag: v3.3.0a1~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba6bafcfbe3c1f271e25d3ec5d5685facaecf6fd;p=python Fix compile failure under Windows --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 9ab366d3be..ab4559f3b0 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -1652,7 +1652,7 @@ unicode_write_cstr(PyObject *unicode, Py_ssize_t index, const char *str) case PyUnicode_1BYTE_KIND: { Py_ssize_t len = strlen(str); assert(index + len <= PyUnicode_GET_LENGTH(unicode)); - memcpy(data + index, str, len); + memcpy((char *) data + index, str, len); return len; } case PyUnicode_2BYTE_KIND: {