Updates for 10.5 API changes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27962 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2009-02-23 20:42:32 +00:00
parent 0b528e776c
commit 30cf8bf35b
138 changed files with 2094 additions and 1536 deletions

View file

@ -378,7 +378,7 @@ GSDecimalNormalize(GSDecimal *n1, GSDecimal *n2, NSRoundingMode mode)
l = MIN(NSDecimalMaxDigit - n1->length, n1->exponent - n2->exponent);
for (i = 0; i < l; i++)
{
n1->cMantissa[(int)n1->length] = 0;
n1->cMantissa[(NSInteger)n1->length] = 0;
n1->length++;
}
n1->exponent = n2->exponent;
@ -751,7 +751,7 @@ NSDecimalDivide(NSDecimal *result, const NSDecimal *l, const NSDecimal *rr,
}
NSCalculationError
NSDecimalPower(NSDecimal *result, const NSDecimal *n, unsigned power, NSRoundingMode mode)
NSDecimalPower(NSDecimal *result, const NSDecimal *n, NSUInteger power, NSRoundingMode mode)
{
NSCalculationError error = NSCalculationNoError;
unsigned int e = power;
@ -1320,7 +1320,7 @@ NSDecimalCompare(const NSDecimal *leftOperand, const NSDecimal *rightOperand)
}
void
NSDecimalRound(NSDecimal *result, const NSDecimal *number, int scale,
NSDecimalRound(NSDecimal *result, const NSDecimal *number, NSInteger scale,
NSRoundingMode mode)
{
NSDecimalCopy(result, number);
@ -1565,7 +1565,7 @@ GSSimpleDivide(NSDecimal *result, const NSDecimal *l, const NSDecimal *r,
if (n1.exponent)
{
// Put back zeros removed by compacting
n1.cMantissa[(int)n1.length] = 0;
n1.cMantissa[(NSInteger)n1.length] = 0;
n1.length++;
n1.exponent--;
}
@ -1577,7 +1577,7 @@ GSSimpleDivide(NSDecimal *result, const NSDecimal *l, const NSDecimal *r,
if (n1.length || l->cMantissa[used])
{
// only add 0 if there is already something
n1.cMantissa[(int)n1.length] = l->cMantissa[used];
n1.cMantissa[(NSInteger)n1.length] = l->cMantissa[used];
n1.length++;
}
used++;
@ -1591,7 +1591,7 @@ GSSimpleDivide(NSDecimal *result, const NSDecimal *l, const NSDecimal *r,
break;
}
// Borrow one digit
n1.cMantissa[(int)n1.length] = 0;
n1.cMantissa[(NSInteger)n1.length] = 0;
n1.length++;
result->exponent--;
}