aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/BitOps/BinaryConversion.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/BitOps/BinaryConversion.php')
-rw-r--r--src/BitOps/BinaryConversion.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/BitOps/BinaryConversion.php b/src/BitOps/BinaryConversion.php
index ae4e403..34d4ca6 100644
--- a/src/BitOps/BinaryConversion.php
+++ b/src/BitOps/BinaryConversion.php
@@ -279,7 +279,7 @@ final readonly class BinaryConversion
// Infinity
if ($e >= 128) {
- return FloatTraits::getF32SignBit($sign) | FloatTraits::F32_INFINITY_BITS;
+ return FloatTraits::getF32SignBit($sign) | FloatTraits::F32_INFINITY_BIT_PATTERN;
}
// Mantissa
@@ -303,7 +303,7 @@ final readonly class BinaryConversion
$e += 1;
// Infinity
if ($e >= 128) {
- return FloatTraits::getF32SignBit($sign) | FloatTraits::F32_INFINITY_BITS;
+ return FloatTraits::getF32SignBit($sign) | FloatTraits::F32_INFINITY_BIT_PATTERN;
}
}