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=7ad2e64cfce99e10e960a032441181378553c6bb;p=rrdtool-all.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@892 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_rpncalc.c b/program/src/rrd_rpncalc.c index 2dab2a9a..f90c214b 100644 --- a/program/src/rrd_rpncalc.c +++ b/program/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);