]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
4294967296 has to be treaded as long long for this to work ... help the compiler...
authorTobias Oetiker <tobi@oetiker.ch>
Fri, 23 Aug 2013 14:21:33 +0000 (16:21 +0200)
committerTobias Oetiker <tobi@oetiker.ch>
Fri, 23 Aug 2013 14:21:33 +0000 (16:21 +0200)
src/rrd_create.c

index ff943f5a81e4f9ecbea721bf35a74d407b475299..a5c1294edaa352d1829e29bbcdf107d21f2ee661 100644 (file)
@@ -444,7 +444,7 @@ int rrd_create_r(
                         if (row_cnt <= 0)
                             rrd_set_error("Invalid row count: %i", row_cnt);
 #if SIZEOF_TIME_T == 4
-                        if ((long long) pdp_step * rrd.rra_def[rrd.stat_head->rra_cnt].pdp_cnt * row_cnt > 4294967296){
+                        if ((long long) pdp_step * rrd.rra_def[rrd.stat_head->rra_cnt].pdp_cnt * row_cnt > 4294967296LL){
                             /* database timespan > 2**32, would overflow time_t */
                             rrd_set_error("The time spanned by the database is too large: must be <= 4294967296 seconds");
                         }