From 7747619b5b3ac34bf068bc18e024ece3246970ac Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 21 Jul 2024 03:45:10 +0900 Subject: fix: fNN.convert_iMM_u --- src/WebAssembly/Execution/NumericOps.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/WebAssembly/Execution/NumericOps.php b/src/WebAssembly/Execution/NumericOps.php index 5fb37cb..0a8345f 100644 --- a/src/WebAssembly/Execution/NumericOps.php +++ b/src/WebAssembly/Execution/NumericOps.php @@ -74,6 +74,7 @@ final readonly class NumericOps public static function f32ConvertI64U(int $x): float { + $x = self::convertS64ToBigUInt($x); return self::truncateF64ToF32((float) $x); } @@ -230,6 +231,7 @@ final readonly class NumericOps public static function f64ConvertI32U(int $x): float { + $x = self::convertS32ToU32($x); return (float) $x; } @@ -240,6 +242,7 @@ final readonly class NumericOps public static function f64ConvertI64U(int $x): float { + $x = self::convertS64ToBigUInt($x); return (float) $x; } -- cgit v1.2.3-70-g09d2