From 18136d83068ab7f2b690a6347e1ef6d806c13d30 Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Thu, 8 Sep 2011 16:43:58 +0200 Subject: [PATCH] Fix an integral overflow on 64-bit --- src/mwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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