X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_first.c;h=4da1b3aa1f3574c7324edf82b877927c6fb76ac4;hb=896f660d222db6362e6171c68d33e8eecdc0d57a;hp=4fb4a4ef10c08e670d521fb193c12d91de9ef597;hpb=aff0a2728543eee1ac21f3fa02f171caae8d9362;p=rrdtool.git diff --git a/src/rrd_first.c b/src/rrd_first.c index 4fb4a4e..4da1b3a 100644 --- a/src/rrd_first.c +++ b/src/rrd_first.c @@ -82,7 +82,7 @@ time_t rrd_first_r( (rra_start + (rrd.rra_ptr[rraindex].cur_row + 1) * rrd.stat_head->ds_cnt * sizeof(rrd_value_t)), SEEK_SET); - timer = -(rrd.rra_def[rraindex].row_cnt - 1); + timer = -(long)(rrd.rra_def[rraindex].row_cnt - 1); if (rrd.rra_ptr[rraindex].cur_row + 1 > rrd.rra_def[rraindex].row_cnt) { rrd_seek(rrd_file, rra_start, SEEK_SET); }