mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 09:41:15 +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
31d0a55f8e
commit
e940dd5cb4
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>
|
2001-06-06 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
Changes for constant string support with gcc-3.0
|
Changes for constant string support with gcc-3.0
|
||||||
|
|
|
@ -435,13 +435,17 @@ typedef struct {
|
||||||
{
|
{
|
||||||
case 'x':
|
case 'x':
|
||||||
case 'X':
|
case 'X':
|
||||||
_scanLocation++;
|
_scanLocation++; // Scan beyond the 0x prefix
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
_scanLocation--;
|
_scanLocation--; // Scan from the initial digit
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_scanLocation--; // Just scan the zero.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ([self scanUnsignedInt_: value radix: 16 gotDigits: NO])
|
if ([self scanUnsignedInt_: value radix: 16 gotDigits: NO])
|
||||||
return YES;
|
return YES;
|
||||||
|
|
Loading…
Reference in a new issue