summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/mmapmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c
index 8407c11b3b..ca5fa880dd 100644
--- a/Modules/mmapmodule.c
+++ b/Modules/mmapmodule.c
@@ -1373,7 +1373,7 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
dwDesiredAccess,
off_hi,
off_lo,
- 0);
+ m_obj->size);
if (m_obj->data != NULL)
return (PyObject *)m_obj;
else