mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Tweka for overflow of negative number calculation
This commit is contained in:
parent
c515993d45
commit
d95203c968
2 changed files with 3 additions and 2 deletions
|
@ -7,6 +7,7 @@
|
|||
* Source/NSNumberFormatter.m: remove dead code
|
||||
* Source/NSPropertyList.m: avoid warnings using cast to void
|
||||
* Source/NSMessagePortNameServer.m: added security checks
|
||||
* Source/NSDecimal.m: tweak underflow setting for negative numbers
|
||||
* Tools/AGSHtml.m: remove useless test
|
||||
|
||||
2018-02-07 Yavor Doganov <yavor@gnu.org>
|
||||
|
@ -37,7 +38,7 @@
|
|||
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, tweak underflow settig for
|
||||
* Source/NSDecimal.m: Remove dead code, tweak underflow setting for
|
||||
negated numbbers.
|
||||
* Tools/gdnc.m: Remove dead code
|
||||
|
||||
|
|
|
@ -554,7 +554,7 @@ NSDecimalSubtract(NSDecimal *result, const NSDecimal *left,
|
|||
result->isNegative = YES;
|
||||
if (NSCalculationUnderflow == error1)
|
||||
error1 = NSCalculationOverflow;
|
||||
else if (NSCalculationUnderflow == error1)
|
||||
else if (NSCalculationOverflow == error1)
|
||||
error1 = NSCalculationUnderflow;
|
||||
return error1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue