projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
we want an int, so lets tell the compiler to make it not complain
[rrdtool.git]
/
src
/
rrd_rpncalc.c
diff --git
a/src/rrd_rpncalc.c
b/src/rrd_rpncalc.c
index
2dab2a9
..
f90c214
100644
(file)
--- 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);