]> err.no Git - varnish/commitdiff
Put a ULL suffix on numeric constants too large for 32 bit systems.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 15 Feb 2008 08:33:41 +0000 (08:33 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 15 Feb 2008 08:33:41 +0000 (08:33 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2463 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvarnish/num.c

index 1ce3999f8c9696eff855c2978391446cc71c0425..cc1ce6cc61af29f539c540d98aa0e38cff0b6d45 100644 (file)
@@ -137,11 +137,11 @@ struct test_case {
        { "1.3GB",              (uintmax_t)0,           (uintmax_t)1395864371 },
        { "1.7GB",              (uintmax_t)0,           (uintmax_t)1825361101 },
 
-       { "1099511627776",      (uintmax_t)0,           (uintmax_t)1099511627776 },
+       { "1099511627776",      (uintmax_t)0,           (uintmax_t)1099511627776ULL },
        { "1T",                 (uintmax_t)0,           (uintmax_t)1<<40 },
        { "1TB",                (uintmax_t)0,           (uintmax_t)1<<40 },
-       { "1.3TB",              (uintmax_t)0,           (uintmax_t)1429365116109 },
-       { "1.7TB",              (uintmax_t)0,           (uintmax_t)1869169767219 },
+       { "1.3TB",              (uintmax_t)0,           (uintmax_t)1429365116109ULL },
+       { "1.7TB",              (uintmax_t)0,           (uintmax_t)1869169767219ULL },
 
        { "1%",                 (uintmax_t)1024,        (uintmax_t)10 },
        { "2%",                 (uintmax_t)1024,        (uintmax_t)20 },