mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
wasm: fix error when generating casts
This commit is contained in:
parent
6cf2ff3cc4
commit
4072111af5
|
@ -1184,7 +1184,7 @@ public abstract class BaseWasmGenerationVisitor implements StatementVisitor, Exp
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void visit(CastExpr expr) {
|
public void visit(CastExpr expr) {
|
||||||
var wasmTargetType = (WasmType.CompositeReference) mapType(expr.getTarget());
|
var wasmTargetType = mapType(expr.getTarget());
|
||||||
acceptWithType(expr.getValue(), expr.getTarget());
|
acceptWithType(expr.getValue(), expr.getTarget());
|
||||||
if (!expr.isWeak()) {
|
if (!expr.isWeak()) {
|
||||||
result.acceptVisitor(typeInference);
|
result.acceptVisitor(typeInference);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user