summaryrefslogtreecommitdiffstats
path: root/Modules/mmapmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-18 14:04:34 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-18 14:04:34 (GMT)
commite371b3d21a53fb31c41d4c81143c0ea0fd2cc9e3 (patch)
tree7392a7dc1d213443ba6e8563618951dc5ccb7882 /Modules/mmapmodule.c
parent0c39b1b970b5a12faa3d438f7fc7f71f293a0a44 (diff)
downloadcpython-e371b3d21a53fb31c41d4c81143c0ea0fd2cc9e3.zip
cpython-e371b3d21a53fb31c41d4c81143c0ea0fd2cc9e3.tar.gz
cpython-e371b3d21a53fb31c41d4c81143c0ea0fd2cc9e3.tar.bz2
Fix compiler warning in mmapmodule.c (compare signed/unsigned integers)
Diffstat (limited to 'Modules/mmapmodule.c')
-rw-r--r--Modules/mmapmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c
index 7c4d17f..d043bb3 100644
--- a/Modules/mmapmodule.c
+++ b/Modules/mmapmodule.c
@@ -1192,7 +1192,7 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
return NULL;
}
map_size = (Py_ssize_t) (st.st_size - offset);
- } else if (offset + (size_t)map_size > st.st_size) {
+ } else if (offset + map_size > st.st_size) {
PyErr_SetString(PyExc_ValueError,
"mmap length is greater than file size");
return NULL;