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=66e3dccc06de04354b8443152b7ef5ce6863b921;p=rrdtool-all.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@1744 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_dump.c b/program/src/rrd_dump.c index b3dfcdca..5fae397c 100644 --- a/program/src/rrd_dump.c +++ b/program/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); }