Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix MSVC C2036 warning by casting to char to match what PyBytes_AS_ST…
…RING did
  • Loading branch information
cmaloney committed Sep 15, 2025
commit b644ffbbd9148454638d933abf348228e7284360
2 changes: 1 addition & 1 deletion Modules/_io/fileio.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ _io_FileIO_readall_impl(fileio *self)
}

n = _Py_read(self->fd,
PyBytesWriter_GetData(writer) + bytes_read,
(char*)PyBytesWriter_GetData(writer) + bytes_read,
bufsize - bytes_read);

if (n == 0)
Expand Down
Loading