mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -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
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user