diff options
Diffstat (limited to 'src/Execution/Allocator.php')
| -rw-r--r-- | src/Execution/Allocator.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Execution/Allocator.php b/src/Execution/Allocator.php index 8012078..23d9a06 100644 --- a/src/Execution/Allocator.php +++ b/src/Execution/Allocator.php @@ -129,11 +129,7 @@ final readonly class Allocator private function allocMem(MemType $memType): MemAddr { - $minSize = $memType->limits->min; - // @todo hack - $minSize *= 8; - $data = array_fill(0, $minSize * 64 * 1024, 0); - $memInst = new MemInst($memType, $data); + $memInst = new MemInst($memType); $this->store->mems[] = $memInst; return new MemAddr(count($this->store->mems) - 1); } |
