X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_dump.c;h=b23da23504567f051376afe369d22e937c01822a;hb=7c4039b31bcabef8f914ce245b71c43509ded6ca;hp=82bc81e66ba5586bdcb66a65cd7825ee409f55c3;hpb=fe32df5c450da4fdeed6351c97cc319b3a9d6552;p=rrdtool.git 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++;