From 814e5197439fbf2b404e8e66f3c6dd6e5ed39776 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 13 Mar 2024 22:42:58 +0900 Subject: perf: make *Addr/*Idx to primitive int --- src/Execution/Stack.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Execution/Stack.php') diff --git a/src/Execution/Stack.php b/src/Execution/Stack.php index 3a40764..467bd9b 100644 --- a/src/Execution/Stack.php +++ b/src/Execution/Stack.php @@ -79,12 +79,12 @@ final class Stack $this->pushValue(Val::RefNull($type)); } - public function pushRefFunc(FuncAddr $addr): void + public function pushRefFunc(int $addr): void { $this->pushValue(Val::RefFunc($addr)); } - public function pushRefExtern(ExternAddr $addr): void + public function pushRefExtern(int $addr): void { $this->pushValue(Val::RefExtern($addr)); } -- cgit v1.2.3-70-g09d2