summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-11-25 13:17:42 +1100
committerEdward Thomson <ethomson@edwardthomson.com>2019-11-25 13:18:17 +1100
commit7e1cc296e4c89c35b38d3637176aab2bdc4efab6 (patch)
tree5357678f4e07992f810076dde679a31195f4d691
parentf94c9276bc4bbc9779ef9abbda9db2f1cec5f863 (diff)
downloadlibgit2-7e1cc296e4c89c35b38d3637176aab2bdc4efab6.tar.gz
mmap: remove unnecessary assertion
64 bit types are always 64 bit.
-rw-r--r--src/win32/map.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/win32/map.c b/src/win32/map.c
index 5769cb869..dff0695d2 100644
--- a/src/win32/map.c
+++ b/src/win32/map.c
@@ -99,8 +99,6 @@ int p_mmap(git_map *out, size_t len, int prot, int flags, int fd, git_off_t offs
return -1;
}
- assert(sizeof(git_off_t) == 8);
-
off_low = (DWORD)(page_start);
off_hi = (DWORD)(page_start >> 32);
out->data = MapViewOfFile(out->fmh, view_prot, off_hi, off_low, len);