[Python-checkins] cpython: Fix compile failure under Windows

antoine.pitrou python-checkins at python.org
Wed Feb 22 16:45:21 CET 2012


http://hg.python.org/cpython/rev/ac4256a1fbe6
changeset:   75174:ac4256a1fbe6
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Wed Feb 22 16:41:50 2012 +0100
summary:
  Fix compile failure under Windows

files:
  Objects/unicodeobject.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -1652,7 +1652,7 @@
     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: {

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list