From ba6bafcfbe3c1f271e25d3ec5d5685facaecf6fd Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 22 Feb 2012 16:41:50 +0100 Subject: Fix compile failure under Windows --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 9ab366d..ab4559f 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: { -- cgit v0.12