1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-07-05 09:28:54 +00:00

Comparison fix

This commit is contained in:
Karol Stasiak 2018-05-14 02:18:46 +02:00
parent 28e53272b9
commit 8cc3399239

View File

@ -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)