From 66e3dccc06de04354b8443152b7ef5ce6863b921 Mon Sep 17 00:00:00 2001 From: oetiker Date: Sun, 25 Jan 2009 22:02:57 +0000 Subject: [PATCH] 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 --- program/src/rrd_dump.c | 2 +- program/src/rrd_first.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.30.2