From 16aaa8127d4fa2e9b897afd6688479f8658f3194 Mon Sep 17 00:00:00 2001 From: epetrich Date: Fri, 5 Sep 2003 05:08:19 +0000 Subject: [PATCH] * src/SDCCast.c (isConformingBody): fixed loop reversal bug reported in bug #800609 git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2875 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 4 ++++ src/SDCCast.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9c218050..414d3991 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-09-05 Erik Petrich + * src/SDCCast.c (isConformingBody): fixed loop reversal bug + reported in bug #800609 + 2003-09-04 Vangelis Rokas * Top header beautifications in src/pic16 directory: device.c, device.h, gen.c, gen.h, genarith.c, glue.c, pcode.c, diff --git a/src/SDCCast.c b/src/SDCCast.c index c50f127d..b230e23c 100644 --- a/src/SDCCast.c +++ b/src/SDCCast.c @@ -1697,7 +1697,7 @@ isConformingBody (ast * pbody, symbol * sym, ast * body) return FALSE; // if the loopvar is used in another (maybe conditional) block if (astHasSymbol (pbody->right, sym) && - (pbody->level > body->level)) { + (pbody->level >= body->level)) { return FALSE; } } -- 2.47.2