]> granicus.if.org Git - python/commitdiff
Fix compile failure under Windows
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 22 Feb 2012 15:41:50 +0000 (16:41 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 22 Feb 2012 15:41:50 +0000 (16:41 +0100)
Objects/unicodeobject.c

index 9ab366d3be145488e19a0f1b8bcde0fd57a8fac2..ab4559f3b02d94b7d396d5e12fc1793d2254ddbe 100644 (file)
@@ -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: {