Commit 7e1cc296e4c89c35b38d3637176aab2bdc4efab6

Edward Thomson 2019-11-25T13:17:42

mmap: remove unnecessary assertion 64 bit types are always 64 bit.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/win32/map.c b/src/win32/map.c
index 5769cb8..dff0695 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);