mirror of
https://github.com/irmen/prog8.git
synced 2026-04-19 04:17:08 +00:00
removed '**' power-operator. Use floats.pow() instead.
This commit is contained in:
@@ -231,7 +231,6 @@ internal class ExpressionGen(val codeGen: CodeGen) {
|
||||
">>" -> {
|
||||
code += VmCodeInstruction(Instruction(Opcode.LSR, vmDt, reg1=resultRegister, reg2=leftResultReg, reg3=rightResultReg))
|
||||
}
|
||||
"**" -> throw AssemblyError("** operator requires floating point ${binExpr.position}")
|
||||
// TODO the other operators: "==", "!=", "<", ">", "<=", ">="
|
||||
else -> TODO("operator ${binExpr.operator}")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user