mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Improved max size code
This commit is contained in:
parent
fd5554c3bd
commit
7e78d3c661
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user