From: oetiker Date: Sun, 10 Sep 2006 19:26:05 +0000 (+0000) Subject: we want an int, so lets tell the compiler to make it not complain X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=46867e50b3d17a28bb1f87e898f1662391168f00;p=rrdtool.git we want an int, so lets tell the compiler to make it not complain git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@892 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_rpncalc.c b/src/rrd_rpncalc.c index 2dab2a9..f90c214 100644 --- a/src/rrd_rpncalc.c +++ b/src/rrd_rpncalc.c @@ -760,7 +760,7 @@ rpn_calc(rpnp_t *rpnp, rpnstack_t *rpnstack, long data_idx, case OP_AVG: stackunderflow(0); { - int i=rpnstack -> s[stptr--]; + int i=(int)rpnstack -> s[stptr--]; double sum=0; int count=0; stackunderflow(i-1);