summaryrefslogtreecommitdiffstats
path: root/Modules/_io/fileio.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-01-11 00:04:12 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-01-11 00:04:12 (GMT)
commit723447958070683deb3ff32d793c4bb731d325b7 (patch)
treed26844c92d122b436684d955b5e8f969e4f39c6e /Modules/_io/fileio.c
parent51e2107b817f10d6af66a3e07fc7d57eabae9d36 (diff)
downloadcpython-723447958070683deb3ff32d793c4bb731d325b7.zip
cpython-723447958070683deb3ff32d793c4bb731d325b7.tar.gz
cpython-723447958070683deb3ff32d793c4bb731d325b7.tar.bz2
Issue #9611: remove useless and dangerous explicit conversion to size_t
Diffstat (limited to 'Modules/_io/fileio.c')
-rw-r--r--Modules/_io/fileio.c4
1 files changed, 2 insertions, 2 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