wasm: fix error when generating casts

This commit is contained in:
Alexey Andreev 2024-09-13 13:25:26 +02:00
parent 6cf2ff3cc4
commit 4072111af5

View File

@ -1184,7 +1184,7 @@ public abstract class BaseWasmGenerationVisitor implements StatementVisitor, Exp
@Override
public void visit(CastExpr expr) {
var wasmTargetType = (WasmType.CompositeReference) mapType(expr.getTarget());
var wasmTargetType = mapType(expr.getTarget());
acceptWithType(expr.getValue(), expr.getTarget());
if (!expr.isWeak()) {
result.acceptVisitor(typeInference);