diff options
| author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2010-01-11 19:27:50 +0000 |
|---|---|---|
| committer | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2010-01-20 20:15:57 +0000 |
| commit | 90d4d2f0fc362beabbbf76b4ffda0828229c198d (patch) | |
| tree | 0f6d2f4cd1a1391a98c6a89e2ee6a69c0afc0c9d /src/win32/map.c | |
| parent | a1c0728d12b170e1e643f219fab53b03cd4e1b09 (diff) | |
| download | libgit2-90d4d2f0fc362beabbbf76b4ffda0828229c198d.tar.gz | |
win32: Use an 64-bit file offset type
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Diffstat (limited to 'src/win32/map.c')
| -rw-r--r-- | src/win32/map.c | 4 |
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 = ? */ |
