projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c516610
)
Fix compile failure under Windows
author
Antoine Pitrou
<solipsis@pitrou.net>
Wed, 22 Feb 2012 15:41:50 +0000
(16:41 +0100)
committer
Antoine Pitrou
<solipsis@pitrou.net>
Wed, 22 Feb 2012 15:41:50 +0000
(16:41 +0100)
Objects/unicodeobject.c
patch
|
blob
|
history
diff --git
a/Objects/unicodeobject.c
b/Objects/unicodeobject.c
index 9ab366d3be145488e19a0f1b8bcde0fd57a8fac2..ab4559f3b02d94b7d396d5e12fc1793d2254ddbe 100644
(file)
--- 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: {