mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
92e6024f3a
commit
2905a3c839
2 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue