diff options
author | Sebastian Schuberth <sschuberth@gmail.com> | 2011-09-08 16:43:58 +0200 |
---|---|---|
committer | Sebastian Schuberth <sschuberth@gmail.com> | 2011-09-08 17:09:10 +0200 |
commit | 18136d83068ab7f2b690a6347e1ef6d806c13d30 (patch) | |
tree | 0503d0894eca99e5b9db5e3f64968c000bf6fa96 /src/mwindow.c | |
parent | 1c3fac4d5e18beacb07865354b10a0bc282a49a7 (diff) | |
download | libgit2-18136d83068ab7f2b690a6347e1ef6d806c13d30.tar.gz |
Fix an integral overflow on 64-bit
Diffstat (limited to 'src/mwindow.c')
-rw-r--r-- | src/mwindow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mwindow.c b/src/mwindow.c index 585d75c12..b25921896 100644 --- a/src/mwindow.c +++ b/src/mwindow.c @@ -35,7 +35,7 @@ : 32 * 1024 * 1024) #define DEFAULT_MAPPED_LIMIT \ - ((1024L * 1024L) * (sizeof(void*) >= 8 ? 8192 : 256)) + ((1024 * 1024) * (sizeof(void*) >= 8 ? 8192ULL : 256UL)) /* * We need this because each process is only allowed a specific amount |