diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-02-22 15:41:50 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-02-22 15:41:50 (GMT) |
commit | ba6bafcfbe3c1f271e25d3ec5d5685facaecf6fd (patch) | |
tree | 1390d18d14238fe684d486dd71f2e78274c2653c /Objects | |
parent | c516610f0bfae66c941c901e17bc29fb338a21e8 (diff) | |
download | cpython-ba6bafcfbe3c1f271e25d3ec5d5685facaecf6fd.zip cpython-ba6bafcfbe3c1f271e25d3ec5d5685facaecf6fd.tar.gz cpython-ba6bafcfbe3c1f271e25d3ec5d5685facaecf6fd.tar.bz2 |
Fix compile failure under Windows
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
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: { |