Code

we want an int, so lets tell the compiler to make it not complain
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 10 Sep 2006 19:26:05 +0000 (19:26 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Sun, 10 Sep 2006 19:26:05 +0000 (19:26 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@892 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_rpncalc.c

index 2dab2a9a3d17f43f71822cbd041eebc6ced24e58..f90c214b4bc454edfdbcee28d1a9b00cf6526d0b 100644 (file)
@@ -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);