mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-03 05:44:10 -08:00
Wasm: fix the way '!' expression translated. Also fix #365
This commit is contained in:
parent
473e33a261
commit
4a7b70e1e8
|
@ -1376,7 +1376,7 @@ class WasmGenerationVisitor implements StatementVisitor, ExprVisitor {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return new WasmIntBinary(WasmIntType.INT32, WasmIntBinaryOperation.XOR, expr, new WasmInt32Constant(1));
|
return new WasmIntBinary(WasmIntType.INT32, WasmIntBinaryOperation.EQ, expr, new WasmInt32Constant(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isOne(WasmExpression expression) {
|
private boolean isOne(WasmExpression expression) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user