Browse Source
This commit fixes a bug in initializing memory segments of 32-bit memories where if the offset was negative when viewed as a signed integer the offset was incorrectly sign-extended to a 64-bit value instead of zero-extended. This commit replaces an `i32`-to-`u64` cast with an `i32`-to-`u32` cast followed by a `u32`-to-`u64` cast which performs the zero extend. Closes #7558pull/7562/head
Alex Crichton
12 months ago
committed by
GitHub
2 changed files with 19 additions and 1 deletions
Loading…
Reference in new issue