mirror of
https://github.com/KarolS/millfork.git
synced 2025-01-11 12:29:46 +00:00
Comparison fix
This commit is contained in:
parent
28e53272b9
commit
8cc3399239
@ -459,7 +459,7 @@ object BuiltIns {
|
||||
case (_, Some(lc), _, Some(rc)) =>
|
||||
// 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)
|
||||
case (v: VariableExpression, None, _, Some(rc)) =>
|
||||
val lva = env.get[VariableInMemory](v.name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user