From 7ad2e64cfce99e10e960a032441181378553c6bb Mon Sep 17 00:00:00 2001 From: oetiker Date: Sun, 10 Sep 2006 19:26:05 +0000 Subject: [PATCH] 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 --- program/src/rrd_rpncalc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2