1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2025-02-11 01:30:53 +00:00

fixed boolean off-by-one.

This commit is contained in:
Jesper Gravgaard 2019-08-07 13:51:39 +02:00
parent ce5e3cf19a
commit 7ba7af9d55

View File

@ -32,7 +32,7 @@ public class Compiler {
private boolean enableZeroPageCoalasce = false;
/** Disable loop head constant optimization. It identified whenever a while()/for() has a constant condition on the first iteration and rewrites it. */
private boolean disableLoopHeadConstant = true;
private boolean disableLoopHeadConstant = false;
public Compiler() {
this.program = new Program();
@ -47,7 +47,7 @@ public class Compiler {
}
void disableLoopHeadConstant() {
this.disableLoopHeadConstant = false;
this.disableLoopHeadConstant = true;
}
void setTargetPlatform(TargetPlatform targetPlatform) {