From 7d60e82bfb076f4e5549c0552298002a931960ff Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 18 May 2024 14:26:36 +0900 Subject: fix: i32.wrap_i64 --- src/Execution/Runtime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Execution') diff --git a/src/Execution/Runtime.php b/src/Execution/Runtime.php index 7727e7b..d15e098 100644 --- a/src/Execution/Runtime.php +++ b/src/Execution/Runtime.php @@ -1249,7 +1249,7 @@ final class Runtime private function execInstrNumericI32WrapI64(Instrs\Numeric\I32WrapI64 $instr): void { $c1 = $this->stack->popInt(); - $this->stack->pushValue($c1 & 0xFFFFFFFF); + $this->stack->pushValue(self::phpIntToWasmI32($c1 & 0xFFFFFFFF)); } private function execInstrNumericI32Xor(Instrs\Numeric\I32Xor $instr): void -- cgit v1.2.3-70-g09d2