From 2582a62c83cce1ae22a091943abbba7b8db368b7 Mon Sep 17 00:00:00 2001 From: Tobias Oetiker Date: Fri, 23 Aug 2013 16:21:33 +0200 Subject: [PATCH] 4294967296 has to be treaded as long long for this to work ... help the compiler see this --- src/rrd_create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rrd_create.c b/src/rrd_create.c index ff943f5a..a5c1294e 100644 --- a/src/rrd_create.c +++ b/src/rrd_create.c @@ -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"); } -- 2.47.2