mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +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
|
@ -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…
Add table
Add a link
Reference in a new issue