diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-10-27 10:06:58 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-10-27 10:06:58 +0100 |
commit | ccb1b990b0d105a7a9d7cb4d870d8033c47a69f2 (patch) | |
tree | bd5bcbe3c456fccd56d0165873d2dadfddbc69b2 /src/win32/map.c | |
parent | 94f74ad28f191e7dc17ae874c00e3ecd6a80fcf4 (diff) | |
parent | 62e562f92b45b6a9b124452f7de6b9e86a179224 (diff) | |
download | libgit2-development.tar.gz |
Merge pull request #2366 from kitbellew/fix-indexer-mmap-castdevelopment
Fix compiler warning (git_off_t cast to size_t).
Diffstat (limited to 'src/win32/map.c')
-rw-r--r-- | src/win32/map.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/win32/map.c b/src/win32/map.c index ef83f882e..a99c30f7e 100644 --- a/src/win32/map.c +++ b/src/win32/map.c @@ -23,9 +23,10 @@ static DWORD get_page_size(void) return page_size; } -long git__page_size(void) +int git__page_size(size_t *page_size) { - return (long)get_page_size(); + *page_size = get_page_size(); + return 0; } int p_mmap(git_map *out, size_t len, int prot, int flags, int fd, git_off_t offset) |