diff --git a/ChangeLog b/ChangeLog index 4efc531d7..ef0c15f4b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,7 @@ * Source/NSPortCoder.m: Remove redundant (always true) conditional. * Source/NSUnarchiver.m: Remove redundant (always true) conditional. * Source/NSPropertyList.m: Remove dead code + * Source/NSDecimal.m: Remove dead code 2018-02-04 Richard Frith-Macdonald diff --git a/Source/NSDecimal.m b/Source/NSDecimal.m index 01fd44c7e..225747ed9 100644 --- a/Source/NSDecimal.m +++ b/Source/NSDecimal.m @@ -310,15 +310,16 @@ GSDecimalRound(GSDecimal *result, int scale, NSRoundingMode mode) case NSRoundBankers: n = result->cMantissa[l]; if (n > 5) - up = YES; + { + up = YES; + } else if (n < 5) - up = NO; + { + up = NO; + } else { - if (0 == l) - c = 0; - else - c = result->cMantissa[l-1]; + c = result->cMantissa[l-1]; up = ((c % 2) != 0); } break;