Commits

Victor Stinner committed df0144f

Issue #14744: Fix compilation on Windows (part 2)

  • Participants
  • Parent commits 6abab1a

Comments (0)

Files changed (1)

File Objects/unicodeobject.c

     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;