-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix access to VMMemoryDefinition::current_length on big-endian
The current_length member is defined as "usize" in Rust code, but generated wasm code refers to it as if it were "u32". Not sure why this is case, and it happens to work on little-endian machines (as long as the length is < 4GB), but it will always fail on big-endian machines. Add the minimal fixes to make it work on big-endian as well. (Note: this patch does not attempt to fix the actual underlying type mismatch ...)
- Loading branch information
Showing
2 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters