Issue #37 reversed loop conditions in AS3

This commit is contained in:
Jindra Petk
2013-03-04 19:59:14 +01:00
parent 3bc55ecf15
commit 287f7868f0
2 changed files with 9 additions and 9 deletions

View File

@@ -905,7 +905,7 @@ public class Graph {
}
GraphPart loopBodyStart = null;
GraphPart next = part.getNextPartPath(loopContinues);
if (((!reversed) || loop) && (expr instanceof LogicalOpItem)) {
if ((reversed == loop) && (expr instanceof LogicalOpItem)) {
expr = ((LogicalOpItem) expr).invert();
}
List<GraphTargetItem> retx = ret;