summaryrefslogtreecommitdiff
path: root/src/mwindow.c
diff options
context:
space:
mode:
authorSebastian Schuberth <sschuberth@gmail.com>2011-09-08 16:43:58 +0200
committerSebastian Schuberth <sschuberth@gmail.com>2011-09-08 17:09:10 +0200
commit18136d83068ab7f2b690a6347e1ef6d806c13d30 (patch)
tree0503d0894eca99e5b9db5e3f64968c000bf6fa96 /src/mwindow.c
parent1c3fac4d5e18beacb07865354b10a0bc282a49a7 (diff)
downloadlibgit2-18136d83068ab7f2b690a6347e1ef6d806c13d30.tar.gz
Fix an integral overflow on 64-bit
Diffstat (limited to 'src/mwindow.c')
-rw-r--r--src/mwindow.c2
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