String usage updates.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9459 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Jonathan Gapen 2001-03-19 23:53:23 +00:00
parent 6852355af1
commit cb8b09362f
7 changed files with 31 additions and 28 deletions

View file

@ -968,7 +968,7 @@ GSDecimalFromString(GSDecimal *result, NSString *numberValue,
found = [numberValue rangeOfString: sep];
if (found.length)
{
s = [[numberValue substringToIndex: found.location] cString];
s = [[numberValue substringToIndex: found.location] lossyCString];
if ('-' == *s)
{
result->isNegative = YES;
@ -982,7 +982,7 @@ GSDecimalFromString(GSDecimal *result, NSString *numberValue,
result->length++;
s++;
}
s = [[numberValue substringFromIndex: NSMaxRange(found)] cString];
s = [[numberValue substringFromIndex: NSMaxRange(found)] lossyCString];
while ((*s) && (isdigit(*s)))
{
result->cMantissa[i++] = *s - '0';
@ -993,7 +993,7 @@ GSDecimalFromString(GSDecimal *result, NSString *numberValue,
}
else
{
s = [numberValue cString];
s = [numberValue lossyCString];
if ('-' == *s)
{
result->isNegative = YES;