Skip to content

Commit 9db9dc1

Browse files
committed
Add missing cast
1 parent 2d494ce commit 9db9dc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/unicodeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9030,7 +9030,7 @@ charmap_encoding_error(
90309030
Py_DECREF(repunicode);
90319031
return -1;
90329032
}
9033-
memcpy(PyBytesWriter_GetData(writer) + *respos,
9033+
memcpy((char*)PyBytesWriter_GetData(writer) + *respos,
90349034
PyBytes_AsString(repunicode), repsize);
90359035
*respos += repsize;
90369036
*inpos = newpos;

0 commit comments

Comments
 (0)