mirror of
https://github.com/irmen/prog8.git
synced 2026-11-30 12:32:14 +00:00
vm: fix comparison datatype error; primes.p8 works again
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user