]> git.sur5r.net Git - bacula/bacula/commitdiff
Add explicit LL to big integers to appease older compilers
authorKern Sibbald <kern@sibbald.com>
Wed, 20 Jul 2016 11:32:23 +0000 (13:32 +0200)
committerKern Sibbald <kern@sibbald.com>
Wed, 20 Jul 2016 11:32:23 +0000 (13:32 +0200)
bacula/src/lib/edit.c

index 19290113f02a61c07e55bc0e78864f325868fd76..d7f43b4dec08852b1972cd4c8b5c412ccbad9141 100644 (file)
@@ -350,8 +350,8 @@ static bool strunit_to_uint64(char *str, int str_len, uint64_t *value,
                            1000000,        /* mb megabyte */
                            1073741824,     /* gigabyte */
                            1000000000,     /* gb gigabyte */
-                           1099511627776,  /* terabyte */
-                           1000000000000}; /* tb terabyte */
+                           1099511627776LL,  /* terabyte */
+                           1000000000000LL}; /* tb terabyte */
 
    if (!get_modifier(str, num_str, sizeof(num_str), mod_str, sizeof(mod_str))) {
       return 0;