From c1d33b8369b1667e0b0d17b3a2d692ca99bc02e3 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 1 Aug 2006 15:08:54 +0000 Subject: [PATCH] Make 32bit limitation work better. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@588 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/storage_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/storage_file.c b/varnish-cache/bin/varnishd/storage_file.c index 1e1d0aa0..02168493 100644 --- a/varnish-cache/bin/varnishd/storage_file.c +++ b/varnish-cache/bin/varnishd/storage_file.c @@ -161,7 +161,7 @@ smf_calcsize(struct smf_sc *sc, const char *size, int newfile) exit (2); } - if (expl < 0 && sizeof(void *) == 4 && l > (1ULL << 31)) { + if (expl < 3 && sizeof(void *) == 4 && l > (1ULL << 31)) { fprintf(stderr, "NB: Limiting size to 2GB on 32 bit architecture to" " prevent running out of\naddress space." -- 2.39.5