Skip to content

Commit b644ffb

Browse files
committed
Fix MSVC C2036 warning by casting to char to match what PyBytes_AS_STRING did
1 parent 86b9f6b commit b644ffb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_io/fileio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ _io_FileIO_readall_impl(fileio *self)
817817
}
818818

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

823823
if (n == 0)

0 commit comments

Comments
 (0)