Fix compilation error in _PyBytesWriter_WriteBytes() on Windows

This commit is contained in:
Victor Stinner 2015-10-12 13:57:47 +02:00
parent 6c2cdae9e6
commit e9aa5950bb
1 changed files with 3 additions and 1 deletions

View File

@ -4042,9 +4042,11 @@ _PyBytesWriter_Finish(_PyBytesWriter *writer, void *str)
}
void*
_PyBytesWriter_WriteBytes(_PyBytesWriter *writer, void *str,
_PyBytesWriter_WriteBytes(_PyBytesWriter *writer, void *ptr,
const void *bytes, Py_ssize_t size)
{
char *str = (char *)ptr;
str = _PyBytesWriter_Prepare(writer, str, size);
if (str == NULL)
return NULL;