Skip to content

Commit

Permalink
MicroTweak to TBitHelper float converter, removes an addition. (#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
belisoful authored Apr 28, 2023
1 parent 87d750f commit e4b6fc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/Util/TBitHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public static function floatToFpXX(float $value, ?int $exponentBits = null, ?int
}
}
}
$fpXX = ($sign << ($exponentBits + $mantissaBits)) | ($exponent << $mantissaBits) | $mantissa;
$fpXX = ((($sign << $exponentBits) | $exponent) << $mantissaBits) | $mantissa;
return $fpXX;
}

Expand Down

0 comments on commit e4b6fc9

Please sign in to comment.