summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-02-22 15:41:50 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-02-22 15:41:50 (GMT)
commitba6bafcfbe3c1f271e25d3ec5d5685facaecf6fd (patch)
tree1390d18d14238fe684d486dd71f2e78274c2653c /Objects
parentc516610f0bfae66c941c901e17bc29fb338a21e8 (diff)
downloadcpython-ba6bafcfbe3c1f271e25d3ec5d5685facaecf6fd.zip
cpython-ba6bafcfbe3c1f271e25d3ec5d5685facaecf6fd.tar.gz
cpython-ba6bafcfbe3c1f271e25d3ec5d5685facaecf6fd.tar.bz2
Fix compile failure under Windows
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
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: {