From 85c9feb6e10cea1ef017d702151b14717c40b9d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Aulery?= Date: Sun, 7 Jul 2013 22:50:30 +0200 Subject: Reduce scope of i (cppcheck --verbose --enable=all) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Aulery Reviewed-by: Alan Coopersmith Signed-off-by: Alan Coopersmith --- math.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/math.c b/math.c index e74cca6..ff2db17 100644 --- a/math.c +++ b/math.c @@ -761,13 +761,12 @@ void offf(void) { /* full reset */ - int i; ResetCalc(); entered=clrdisp=1; lift_enabled = 0; dnum=mem[0]=0.0; if (rpn) - for (i=1; i < XCALC_MEMORY; i++) + for (int i=1; i < XCALC_MEMORY; i++) mem[i]=0.0; exponent=Dpoint=0; DrawDisplay(); -- cgit v1.2.3