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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba6bafcfbe3c1f271e25d3ec5d5685facaecf6fd;p=thirdparty%2FPython%2Fcpython.git Fix compile failure under Windows --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 9ab366d3be14..ab4559f3b02d 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: {