mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-08 16:04:10 -08:00
WASM: fix translation of binary operations
This commit is contained in:
parent
cc0c68e809
commit
ef9d8a30bc
|
@ -158,10 +158,10 @@ class WasmGenerationVisitor implements StatementVisitor, ExprVisitor {
|
|||
generateBinary(WasmIntBinaryOperation.ADD, WasmFloatBinaryOperation.ADD, expr);
|
||||
break;
|
||||
case SUBTRACT:
|
||||
generateBinary(WasmIntBinaryOperation.SUB, WasmFloatBinaryOperation.ADD, expr);
|
||||
generateBinary(WasmIntBinaryOperation.SUB, WasmFloatBinaryOperation.SUB, expr);
|
||||
break;
|
||||
case MULTIPLY:
|
||||
generateBinary(WasmIntBinaryOperation.MUL, WasmFloatBinaryOperation.ADD, expr);
|
||||
generateBinary(WasmIntBinaryOperation.MUL, WasmFloatBinaryOperation.MUL, expr);
|
||||
break;
|
||||
case DIVIDE:
|
||||
generateBinary(WasmIntBinaryOperation.DIV_SIGNED, WasmFloatBinaryOperation.DIV, expr);
|
||||
|
|
Loading…
Reference in New Issue
Block a user