From 996259e6a1a04f91179d2b83cc19e3fbb371cd33 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 26 Feb 2024 13:21:22 +0900 Subject: feat: implement some of instructions --- src/BinaryFormat/Decoder.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/BinaryFormat/Decoder.php') diff --git a/src/BinaryFormat/Decoder.php b/src/BinaryFormat/Decoder.php index ae6e9f2..4922482 100644 --- a/src/BinaryFormat/Decoder.php +++ b/src/BinaryFormat/Decoder.php @@ -293,11 +293,11 @@ final class Decoder if ($b !== 0x60) { throw new InvalidBinaryFormatException("functype"); } - $args = $this->decodeResultType(); - $returns = $this->decodeResultType(); + $params = $this->decodeResultType(); + $results = $this->decodeResultType(); return new FuncType( - $args, - $returns, + $params, + $results, ); } -- cgit v1.2.3-70-g09d2