vm: fix comparison datatype error; primes.p8 works again

This commit is contained in:
Irmen de Jong committed 2022-05-24 18:26:07 +02:00
1 parent 3f5877dbcc
commit b459b09b2f
4 files changed
+16 -21

No files matched your search

@@ -585,7 +585,7 @@ class CodeGen(internal val program: PtProgram,
throw AssemblyError("if condition should only be a binary comparison expression")
val signed = ifElse.condition.left.type in arrayOf(DataType.BYTE, DataType.WORD, DataType.FLOAT)
val vmDt = vmType(ifElse.condition.type)
val vmDt = vmType(ifElse.condition.left.type)
val code = VmCodeChunk()
fun translateNonZeroComparison(): VmCodeChunk {