aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/Execution/NumericOps.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/WebAssembly/Execution/NumericOps.php')
-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;
}