6 Jun 2001 16:02
NSScanner bug fixed
Tom Koelman <tkoelman <at> sct.com>
2001-06-06 14:02:43 GMT
2001-06-06 14:02:43 GMT
Hi,
I think I found a bug in NSScanner.m in core20010606/base/Source.
When calling scanHexInt on a string containing just "0", scanning fails. I
suggest changing
if (_scanLocation < myLength())
{
switch (myCharacter(_scanLocation))
{
case '+':
_scanLocation++;
break;
case '-':
negative = YES;
_scanLocation++;
break;
}
}
to
if (_scanLocation < myLength())
{
switch (myCharacter(_scanLocation))
{
case '+':
_scanLocation++;
break;
(Continue reading)
RSS Feed