From 46867e50b3d17a28bb1f87e898f1662391168f00 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/program@892 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_rpncalc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.0