diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-07-21 03:45:10 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-07-21 03:45:10 +0900 |
| commit | 7747619b5b3ac34bf068bc18e024ece3246970ac (patch) | |
| tree | 874fddfe85d3ab11b6c524b0e5b9874fdf513d9b /src/WebAssembly/Execution/NumericOps.php | |
| parent | ededc5042a19f1c90df45f7c5a81baa77523f0b9 (diff) | |
| download | php-waddiwasi-7747619b5b3ac34bf068bc18e024ece3246970ac.tar.gz php-waddiwasi-7747619b5b3ac34bf068bc18e024ece3246970ac.tar.zst php-waddiwasi-7747619b5b3ac34bf068bc18e024ece3246970ac.zip | |
fix: fNN.convert_iMM_u
Diffstat (limited to 'src/WebAssembly/Execution/NumericOps.php')
| -rw-r--r-- | src/WebAssembly/Execution/NumericOps.php | 3 |
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; } |
