diff options
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/LibWasm/test-wasm.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/LibWasm/test-wasm.cpp b/Tests/LibWasm/test-wasm.cpp index 122d2cbdf7..44bc43d7a5 100644 --- a/Tests/LibWasm/test-wasm.cpp +++ b/Tests/LibWasm/test-wasm.cpp @@ -211,14 +211,14 @@ JS_DEFINE_NATIVE_FUNCTION(WebAssemblyModule::wasm_invoke) double_value = TRY(argument.to_double(vm)); switch (param.kind()) { case Wasm::ValueType::Kind::I32: - arguments.append(Wasm::Value(param, static_cast<u64>(double_value))); + arguments.append(Wasm::Value(param, static_cast<i64>(double_value))); break; case Wasm::ValueType::Kind::I64: if (argument.is_bigint()) { auto value = TRY(argument.to_bigint_int64(vm)); - arguments.append(Wasm::Value(param, bit_cast<u64>(value))); + arguments.append(Wasm::Value(param, value)); } else { - arguments.append(Wasm::Value(param, static_cast<u64>(double_value))); + arguments.append(Wasm::Value(param, static_cast<i64>(double_value))); } break; case Wasm::ValueType::Kind::F32: |