From 7bc9e73c59e6ec7e4f9feef785e08dc56fbb09eb Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 6 Apr 2025 21:31:15 +0900 Subject: refactor: rename method --- src/WebAssembly/Execution/NumericOps.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/WebAssembly/Execution/NumericOps.php b/src/WebAssembly/Execution/NumericOps.php index 2b48679..f7a1e89 100644 --- a/src/WebAssembly/Execution/NumericOps.php +++ b/src/WebAssembly/Execution/NumericOps.php @@ -70,13 +70,13 @@ final readonly class NumericOps public static function f32ConvertI64S(int $x): float { - return self::castBitIntToCFloat((string)$x); + return self::castBigIntToF32((string)$x); } public static function f32ConvertI64U(int $x): float { $x = self::convertS64ToBigUInt($x); - return self::castBitIntToCFloat($x); + return self::castBigIntToF32($x); } public static function f32CopySign(float $x, float $y): float @@ -1192,7 +1192,7 @@ final readonly class NumericOps } - private static function castBitIntToCFloat(string $x): float + private static function castBigIntToF32(string $x): float { // @phpstan-ignore-next-line return self::ffi()->strtof($x, null); -- cgit v1.2.3-70-g09d2