Improved max size code

This commit is contained in:
Syrus 2018-12-14 17:37:44 -08:00
parent fd5554c3bd
commit 7e78d3c661

View File

@ -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.