summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-01-15 17:31:19 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-01-15 17:31:19 (GMT)
commit50dc65f6cef58f94cf87538a9fd886e3674a9980 (patch)
treed51d8558837280beab536385fc03cb76be041587 /Modules
parentfb7bc3d2f06e4b7c4b7bb0daf85c26cad9832cf3 (diff)
downloadcpython-50dc65f6cef58f94cf87538a9fd886e3674a9980.zip
cpython-50dc65f6cef58f94cf87538a9fd886e3674a9980.tar.gz
cpython-50dc65f6cef58f94cf87538a9fd886e3674a9980.tar.bz2
Merged revisions 88036 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r88036 | antoine.pitrou | 2011-01-15 18:25:58 +0100 (sam., 15 janv. 2011) | 3 lines Fix mmap and test_mmap under Windows too (followup to r88022) ........
Diffstat (limited to 'Modules')
-rw-r--r--Modules/mmapmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c
index 199d960..bbea208 100644
--- a/Modules/mmapmodule.c
+++ b/Modules/mmapmodule.c
@@ -1269,6 +1269,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;
}