From 06d2116bfef88c41e3a64ca596acdba6ff078c23 Mon Sep 17 00:00:00 2001 From: oetiker Date: Fri, 2 Jul 2010 05:33:10 +0000 Subject: [PATCH] rrd_update and rrd_rpncalc - fix casts introduced by win32 patch to make gcc happy too git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@2098 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_rpncalc.c | 2 +- src/rrd_update.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rrd_rpncalc.c b/src/rrd_rpncalc.c index b563db4..80eb144 100644 --- a/src/rrd_rpncalc.c +++ b/src/rrd_rpncalc.c @@ -77,7 +77,7 @@ rpnp_t *rpn_expand( return NULL; } for (i = 0; rpnc[i].op != OP_END; ++i) { - rpnp[i].op = (op_en)rpnc[i].op; + rpnp[i].op = (enum op_en)rpnc[i].op; if (rpnp[i].op == OP_NUMBER) { rpnp[i].val = (double) rpnc[i].val; } else if (rpnp[i].op == OP_VARIABLE || rpnp[i].op == OP_PREV_OTHER) { diff --git a/src/rrd_update.c b/src/rrd_update.c index e4252db..a06b404 100644 --- a/src/rrd_update.c +++ b/src/rrd_update.c @@ -1558,7 +1558,7 @@ static int update_cdp_prep( if (elapsed_pdp_st > 2) { reset_cdp(rrd, elapsed_pdp_st, pdp_temp, last_seasonal_coef, seasonal_coef, rra_idx, ds_idx, cdp_idx, - (cf_en)current_cf); + (enum cf_en)current_cf); } } -- 2.30.2