mirror of https://github.com/python/cpython
Fix compilation error in _PyBytesWriter_WriteBytes() on Windows
This commit is contained in:
parent
6c2cdae9e6
commit
e9aa5950bb
|
@ -4042,9 +4042,11 @@ _PyBytesWriter_Finish(_PyBytesWriter *writer, void *str)
|
||||||
}
|
}
|
||||||
|
|
||||||
void*
|
void*
|
||||||
_PyBytesWriter_WriteBytes(_PyBytesWriter *writer, void *str,
|
_PyBytesWriter_WriteBytes(_PyBytesWriter *writer, void *ptr,
|
||||||
const void *bytes, Py_ssize_t size)
|
const void *bytes, Py_ssize_t size)
|
||||||
{
|
{
|
||||||
|
char *str = (char *)ptr;
|
||||||
|
|
||||||
str = _PyBytesWriter_Prepare(writer, str, size);
|
str = _PyBytesWriter_Prepare(writer, str, size);
|
||||||
if (str == NULL)
|
if (str == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue