diff options
Diffstat (limited to 'src/WebAssembly')
| -rw-r--r-- | src/WebAssembly/Execution/MemInst.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/WebAssembly/Execution/MemInst.php b/src/WebAssembly/Execution/MemInst.php index e93e79b..f5733e6 100644 --- a/src/WebAssembly/Execution/MemInst.php +++ b/src/WebAssembly/Execution/MemInst.php @@ -86,11 +86,11 @@ final class MemInst return -1; } - $limits = $this->type->limits; - $limits_ = new Limits($len, $limits->max); - if (!$limits_->isValid()) { + $limits = new Limits($len, $this->type->limits->max); + if (!$limits->isValid()) { return -1; } + $this->type = new MemType($limits); $originalSize = $this->size(); // @phpstan-ignore-next-line |
