X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_dump.c;h=b23da23504567f051376afe369d22e937c01822a;hp=82bc81e66ba5586bdcb66a65cd7825ee409f55c3;hb=59d97685e48c93d65b36c68d5f762380c6d1ab4e;hpb=c14d8b6f092d8af34a94c07223d685b5a8369e16 diff --git a/src/rrd_dump.c b/src/rrd_dump.c index 82bc81e..b23da23 100644 --- a/src/rrd_dump.c +++ b/src/rrd_dump.c @@ -394,7 +394,7 @@ static int rrd_dump_opt_r( rrd_seek(rrd_file, (rra_start + (rrd.rra_ptr[i].cur_row + 1) * rrd.stat_head->ds_cnt * sizeof(rrd_value_t)), SEEK_SET); - timer = -(rrd.rra_def[i].row_cnt - 1); + timer = -(long)(rrd.rra_def[i].row_cnt - 1); ii = rrd.rra_ptr[i].cur_row; for (ix = 0; ix < rrd.rra_def[i].row_cnt; ix++) { ii++;