mirror of
https://github.com/KarolS/millfork.git
synced 2025-02-12 09:30:37 +00:00
Comparison fix
This commit is contained in:
parent
28e53272b9
commit
8cc3399239
@ -459,7 +459,7 @@ object BuiltIns {
|
|||||||
case (_, Some(lc), _, Some(rc)) =>
|
case (_, Some(lc), _, Some(rc)) =>
|
||||||
// TODO: comparing late-bound constants
|
// TODO: comparing late-bound constants
|
||||||
???
|
???
|
||||||
case (_, Some(lc), rv: VariableInMemory, None) =>
|
case (_, Some(lc), rv: VariableExpression, None) =>
|
||||||
return compileWordComparison(ctx, ComparisonType.flip(compType), rhs, lhs, branches)
|
return compileWordComparison(ctx, ComparisonType.flip(compType), rhs, lhs, branches)
|
||||||
case (v: VariableExpression, None, _, Some(rc)) =>
|
case (v: VariableExpression, None, _, Some(rc)) =>
|
||||||
val lva = env.get[VariableInMemory](v.name)
|
val lva = env.get[VariableInMemory](v.name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user