mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +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: https://github.com/LadybirdBrowser/ladybird/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));
|
||||
}
|
||||
|
||||
u128 bits;
|
||||
u128 bits = 0;
|
||||
(void)argument.as_bigint().big_integer().unsigned_value().export_data({ bit_cast<u8*>(&bits), sizeof(bits) });
|
||||
VERIFY(!argument.as_bigint().big_integer().is_negative());
|
||||
|
||||
|
|
Loading…
Reference in a new issue