diff options
Diffstat (limited to 'src/asm2wasm.cpp')
-rw-r--r-- | src/asm2wasm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/asm2wasm.cpp b/src/asm2wasm.cpp index 28ff7d563..ef43a6ac2 100644 --- a/src/asm2wasm.cpp +++ b/src/asm2wasm.cpp @@ -821,7 +821,7 @@ Function* Asm2WasmModule::processFunction(Ref ast) { auto ret = allocator.alloc<Convert>(); ret->op = isUnsignedCoercion(ast[2]) ? ConvertUInt32 : ConvertSInt32; ret->value = process(ast[2]); - ret->type = BasicType::i32; + ret->type = BasicType::f64; return ret; } assert(childType == ASM_NONE); // e.g. a coercion on a call |