diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-04-06 21:31:15 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-04-06 21:31:15 +0900 |
| commit | 7bc9e73c59e6ec7e4f9feef785e08dc56fbb09eb (patch) | |
| tree | 9bc96fd92ad9b2ef079ac41906738ea9a41ec151 | |
| parent | 3fd10081b2766cfccf1b8e1589d6ad011de6dbb2 (diff) | |
| download | php-waddiwasi-7bc9e73c59e6ec7e4f9feef785e08dc56fbb09eb.tar.gz php-waddiwasi-7bc9e73c59e6ec7e4f9feef785e08dc56fbb09eb.tar.zst php-waddiwasi-7bc9e73c59e6ec7e4f9feef785e08dc56fbb09eb.zip | |
refactor: rename method
| -rw-r--r-- | src/WebAssembly/Execution/NumericOps.php | 6 |
1 files 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); |
