diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-10-15 12:13:42 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-10-15 12:13:42 +0400 |
commit | 45ec2b422e3262ec65481c629ad2933038741f6d (patch) | |
tree | d35e920543105a2ce36fae82c86d14bbbcce585b /winsup/cygwin/mmap.cc | |
parent | a4ec505383ff0c08c61a425df8e2c5e364068519 (diff) |
* mmap.cc (mmap64): Convert pagesize from DWORD to size_t to avoid
a rounding error for allocations beyond 4 Gigs.
Diffstat (limited to 'winsup/cygwin/mmap.cc')
-rw-r--r-- | winsup/cygwin/mmap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/mmap.cc b/winsup/cygwin/mmap.cc index c68d4195e..8175d6ea3 100644 --- a/winsup/cygwin/mmap.cc +++ b/winsup/cygwin/mmap.cc @@ -901,7 +901,7 @@ mmap64 (void *addr, size_t len, int prot, int flags, int fd, off_t off) caddr_t base = NULL; struct stat st; - DWORD pagesize = wincap.allocation_granularity (); + size_t pagesize = wincap.allocation_granularity (); fh_anonymous.set_io_handle (INVALID_HANDLE_VALUE); fh_anonymous.set_access (GENERIC_READ | GENERIC_WRITE | GENERIC_EXECUTE); |