mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
logic fig for overflow becoming underflow when using negated values
This commit is contained in:
parent
29c3dea2b1
commit
8450b94bc8
2 changed files with 3 additions and 2 deletions
|
@ -4,7 +4,8 @@
|
|||
Use cast to mask 64bit values.
|
||||
* Source/NSUnarchiver.m: Remove redundant (always true) conditional.
|
||||
* Source/NSPropertyList.m: Remove dead code
|
||||
* Source/NSDecimal.m: Remove dead code
|
||||
* Source/NSDecimal.m: Remove dead code, tweak underflow settig for
|
||||
negated numbbers.
|
||||
* Tools/gdnc.m: Remove dead code
|
||||
|
||||
2018-02-04 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
|
|
@ -488,7 +488,7 @@ NSDecimalAdd(NSDecimal *result, const NSDecimal *left, const NSDecimal *right,
|
|||
result->isNegative = YES;
|
||||
if (NSCalculationUnderflow == error1)
|
||||
error1 = NSCalculationOverflow;
|
||||
else if (NSCalculationUnderflow == error1)
|
||||
else if (NSCalculationOverflow == error1)
|
||||
error1 = NSCalculationUnderflow;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue