Skip to content

Commit

Permalink
Improved max size code
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Dec 15, 2018
1 parent fd5554c commit 7e78d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webassembly/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl LinearMemory {

/// Returns the maximum number of wasm pages allowed.
pub fn maximum_size(&self) -> u32 {
self.maximum.unwrap_or(65536)
self.maximum.unwrap_or(Self::MAX_PAGES)
}

/// Grow memory by the specified amount of pages.
Expand Down

0 comments on commit 7e78d3c

Please sign in to comment.