From 3a7d096f2f4339e07262fa0a73d14ea51cfd4533 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 29 May 2012 18:53:56 +0200 Subject: Issue #14744: Fix compilation on Windows (part 2) --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 00bfff2..874e80e 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -13229,7 +13229,7 @@ formatfloat(PyObject *v, int flags, int prec, int type, if (writer) { if (_PyUnicodeWriter_Prepare(writer, len, 127) == -1) return -1; - memcpy(writer->data + writer->pos * writer->kind, + memcpy((char*)writer->data + writer->pos * writer->kind, p, len); writer->pos += len; -- cgit v0.12