Minor scanning fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10089 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2001-06-06 15:36:26 +00:00
parent 92e6024f3a
commit 2905a3c839
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2001-06-06 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSScanner.m: ([scanHexInt:]) fix for scanning number
consisting just of a zero. Reported by Tom Koelman
2001-06-06 Richard Frith-Macdonald <rfm@gnu.org>
Changes for constant string support with gcc-3.0

View file

@ -435,13 +435,17 @@ typedef struct {
{
case 'x':
case 'X':
_scanLocation++;
_scanLocation++; // Scan beyond the 0x prefix
break;
default:
_scanLocation--;
_scanLocation--; // Scan from the initial digit
break;
}
}
else
{
_scanLocation--; // Just scan the zero.
}
}
if ([self scanUnsignedInt_: value radix: 16 gotDigits: NO])
return YES;