mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Fix compilation error in _PyBytesWriter_WriteBytes() on Windows
This commit is contained in:
parent
6c2cdae9e6
commit
e9aa5950bb
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue