Skip to content

Commit 9e184c0

Browse files
lint
1 parent 2ac7507 commit 9e184c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/lib/LibDecimalFloat.sol‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ library LibDecimalFloat {
590590
return float;
591591
}
592592
(int256 integer, int256 fraction) = LibDecimalFloatImplementation.intFrac(signedCoefficient, exponent);
593-
if (signedCoefficient < 0 && fraction < 0) {
593+
if (signedCoefficient < 0 && fraction != 0) {
594594
// If the float is negative and has a fractional part, we need to
595595
// subtract 1 from the characteristic to floor it.
596596
(integer, exponent) = LibDecimalFloatImplementation.sub(integer, exponent, 1e76, -76);

0 commit comments

Comments
 (0)