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/Val.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Execution/Val.php') diff --git a/src/Execution/Val.php b/src/Execution/Val.php index 0f9ce42..1746cae 100644 --- a/src/Execution/Val.php +++ b/src/Execution/Val.php @@ -55,12 +55,12 @@ abstract readonly class Val return self::Ref(Ref::RefNull($type)); } - final public static function RefFunc(FuncAddr $addr): Vals\Ref + final public static function RefFunc(int $addr): Vals\Ref { return self::Ref(Ref::RefFunc($addr)); } - final public static function RefExtern(ExternAddr $addr): Vals\Ref + final public static function RefExtern(int $addr): Vals\Ref { return self::Ref(Ref::RefExtern($addr)); } -- cgit v1.3-1-g0d28