mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 00:08:55 +00:00
LibWasm: test-wasm: Default initialize u128 parameter bits to 0
This fixes 326 tests. 18802 failed without 18476 failed with.
This commit is contained in:
parent
666f7338a0
commit
64e27cb659
Notes:
sideshowbarker
2024-07-17 07:08:37 +09:00
Author: https://github.com/Enverbalalic
Commit: 64e27cb659
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/111
Reviewed-by: https://github.com/alimpfard ✅
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ JS_DEFINE_NATIVE_FUNCTION(WebAssemblyModule::wasm_invoke)
|
||||||
argument = TRY(argument.to_bigint(vm));
|
argument = TRY(argument.to_bigint(vm));
|
||||||
}
|
}
|
||||||
|
|
||||||
u128 bits;
|
u128 bits = 0;
|
||||||
(void)argument.as_bigint().big_integer().unsigned_value().export_data({ bit_cast<u8*>(&bits), sizeof(bits) });
|
(void)argument.as_bigint().big_integer().unsigned_value().export_data({ bit_cast<u8*>(&bits), sizeof(bits) });
|
||||||
VERIFY(!argument.as_bigint().big_integer().is_negative());
|
VERIFY(!argument.as_bigint().big_integer().is_negative());
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue