summaryrefslogtreecommitdiff
path: root/src/win32/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32/map.c')
-rw-r--r--src/win32/map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win32/map.c b/src/win32/map.c
index 7d685c722..388e9c621 100644
--- a/src/win32/map.c
+++ b/src/win32/map.c
@@ -77,9 +77,9 @@ int git__mmap(git_map *out, size_t len, int prot, int flags, int fd, off_t offse
return GIT_ERROR;
}
+ assert(sizeof(off_t) == 8);
off_low = (DWORD)(page_start);
- if (sizeof(off_t) > 4)
- off_hi = (DWORD)(page_start >> 32);
+ off_hi = (DWORD)(page_start >> 32);
out->data = MapViewOfFile(out->fmh, view_prot, off_hi, off_low, len);
if (!out->data) {
/* errno = ? */