aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-21 03:45:10 +0900
committernsfisis <nsfisis@gmail.com>2024-07-21 03:45:10 +0900
commit7747619b5b3ac34bf068bc18e024ece3246970ac (patch)
tree874fddfe85d3ab11b6c524b0e5b9874fdf513d9b
parentededc5042a19f1c90df45f7c5a81baa77523f0b9 (diff)
downloadphp-waddiwasi-7747619b5b3ac34bf068bc18e024ece3246970ac.tar.gz
php-waddiwasi-7747619b5b3ac34bf068bc18e024ece3246970ac.tar.zst
php-waddiwasi-7747619b5b3ac34bf068bc18e024ece3246970ac.zip
fix: fNN.convert_iMM_u
-rw-r--r--src/WebAssembly/Execution/NumericOps.php3
1 files changed, 3 insertions, 0 deletions
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;
}