]> err.no Git - varnish/commitdiff
Make 32bit limitation work better.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 1 Aug 2006 15:08:54 +0000 (15:08 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 1 Aug 2006 15:08:54 +0000 (15:08 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@588 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/storage_file.c

index 1e1d0aa090263746e1b36256f7b2956ac26df0c5..02168493520ed9ad7464afe56d2944a454308572 100644 (file)
@@ -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."