summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Modules/_io/fileio.c4
-rw-r--r--Modules/posixmodule.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c
index 2e5d7ac..f96f2e2 100644
--- a/Modules/_io/fileio.c
+++ b/Modules/_io/fileio.c
@@ -530,7 +530,7 @@ fileio_readinto(fileio *self, PyObject *args)
len = INT_MAX;
n = read(self->fd, pbuf.buf, (int)len);
#else
- n = read(self->fd, pbuf.buf, (size_t)len);
+ n = read(self->fd, pbuf.buf, len);
#endif
Py_END_ALLOW_THREADS
} else
@@ -716,7 +716,7 @@ fileio_write(fileio *self, PyObject *args)
len = INT_MAX;
n = write(self->fd, pbuf.buf, (int)len);
#else
- n = write(self->fd, pbuf.buf, (size_t)len);
+ n = write(self->fd, pbuf.buf, len);
#endif
Py_END_ALLOW_THREADS
} else
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index a37efca..3b9fd05 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -5712,7 +5712,7 @@ posix_write(PyObject *self, PyObject *args)
len = INT_MAX;
size = write(fd, pbuf.buf, (int)len);
#else
- size = write(fd, pbuf.buf, (size_t)len);
+ size = write(fd, pbuf.buf, len);
#endif
Py_END_ALLOW_THREADS
PyBuffer_Release(&pbuf);