diff options
Diffstat (limited to 'src/asm2wasm.h')
-rw-r--r-- | src/asm2wasm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h index 8dcefec0e..51536663d 100644 --- a/src/asm2wasm.h +++ b/src/asm2wasm.h @@ -935,7 +935,7 @@ Function* Asm2WasmBuilder::processFunction(Ref ast) { double num = ast[1]->getNumber(); if (isInteger32(num)) { ret->value.type = WasmType::i32; - ret->value.i32 = num; + ret->value.i32 = toInteger32(num); } else { ret->value.type = WasmType::f64; ret->value.f64 = num; |