diff options
Diffstat (limited to 'src/asm2wasm.h')
-rw-r--r-- | src/asm2wasm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h index 1f1805379..fb9635018 100644 --- a/src/asm2wasm.h +++ b/src/asm2wasm.h @@ -1508,7 +1508,7 @@ void Asm2WasmBuilder::processAsm(Ref ast) { assert(params[i] == Type::f64 || curr->operands[i]->type == Type::unreachable); // overloaded, upgrade to f64 - switch (curr->operands[i]->type) { + switch (curr->operands[i]->type.getSingle()) { case Type::i32: curr->operands[i] = parent->builder.makeUnary( ConvertSInt32ToFloat64, curr->operands[i]); @@ -1529,7 +1529,7 @@ void Asm2WasmBuilder::processAsm(Ref ast) { if (importResults == Type::f64) { // we use a JS f64 value which is the most general, and convert to // it - switch (old) { + switch (old.getSingle()) { case Type::i32: { Unary* trunc = parent->builder.makeUnary(TruncSFloat64ToInt32, curr); |