aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-05-18 14:26:36 +0900
committernsfisis <nsfisis@gmail.com>2024-05-18 14:26:36 +0900
commit7d60e82bfb076f4e5549c0552298002a931960ff (patch)
tree2e7ecff52a7ca2a719879f53e5677c94f6b71f99
parent579b41ce7bbf6d24b300d0f0736701ef63ae58f7 (diff)
downloadphp-waddiwasi-7d60e82bfb076f4e5549c0552298002a931960ff.tar.gz
php-waddiwasi-7d60e82bfb076f4e5549c0552298002a931960ff.tar.zst
php-waddiwasi-7d60e82bfb076f4e5549c0552298002a931960ff.zip
fix: i32.wrap_i64
-rw-r--r--src/Execution/Runtime.php2
1 files changed, 1 insertions, 1 deletions
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