From: oetiker Date: Sun, 25 Jan 2009 22:02:57 +0000 (+0000) Subject: fix type conversion error (on windows) unsigned/signed affecting timestamps on rrd_dump. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=53cf46208d464118b79f1b89f5897bbc0b712c8c;p=rrdtool.git fix type conversion error (on windows) unsigned/signed affecting timestamps on rrd_dump. git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1744 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_dump.c b/src/rrd_dump.c index b3dfcdc..5fae397 100644 --- a/src/rrd_dump.c +++ b/src/rrd_dump.c @@ -318,7 +318,7 @@ rrd_dump_r(const char *filename, char *outname) +(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;ixds_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) { fseek(in_file,rra_start,SEEK_SET); }