summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.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/posixmodule.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/posixmodule.c')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
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);