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:
parent
ce5e3cf19a
commit
7ba7af9d55
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user