diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-03-13 22:42:58 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-03-13 22:42:58 +0900 |
| commit | 814e5197439fbf2b404e8e66f3c6dd6e5ed39776 (patch) | |
| tree | 72901a7e2f1641366d2cfd57b883929989c68328 /src/Execution/Ref.php | |
| parent | 7348999caf3ce1e0be64697319581d52f1d7f8ea (diff) | |
| download | php-waddiwasi-814e5197439fbf2b404e8e66f3c6dd6e5ed39776.tar.gz php-waddiwasi-814e5197439fbf2b404e8e66f3c6dd6e5ed39776.tar.zst php-waddiwasi-814e5197439fbf2b404e8e66f3c6dd6e5ed39776.zip | |
perf: make *Addr/*Idx to primitive int
Diffstat (limited to 'src/Execution/Ref.php')
| -rw-r--r-- | src/Execution/Ref.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Execution/Ref.php b/src/Execution/Ref.php index 4f0c3c1..a5682d3 100644 --- a/src/Execution/Ref.php +++ b/src/Execution/Ref.php @@ -13,12 +13,12 @@ abstract readonly class Ref return new Refs\RefNull($type); } - final public static function RefFunc(FuncAddr $addr): Refs\RefFunc + final public static function RefFunc(int $addr): Refs\RefFunc { return new Refs\RefFunc($addr); } - final public static function RefExtern(ExternAddr $addr): Refs\RefExtern + final public static function RefExtern(int $addr): Refs\RefExtern { return new Refs\RefExtern($addr); } |
