mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix compiler warning in mmapmodule.c (compare signed/unsigned integers)
This commit is contained in:
parent
0c39b1b970
commit
e371b3d21a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue