Fix mmap and test_mmap under Windows too (followup to r88022)

This commit is contained in:
Antoine Pitrou 2011-01-15 17:25:58 +00:00
parent 3988ed8e6f
commit d0ebc75e73
2 changed files with 7 additions and 5 deletions

View file

@ -1300,6 +1300,7 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
else
m_obj->size = low;
#endif
m_obj->size -= offset;
} else {
m_obj->size = map_size;
}