Tweaks for building with clang

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29254 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2010-01-10 14:38:16 +00:00
parent cc9250b32e
commit 072c124d08
24 changed files with 106 additions and 54 deletions

View file

@ -934,7 +934,10 @@ typedef struct {
NSRange range;
unsigned int saveScanLocation = _scanLocation;
skipToNextField();
if (skipToNextField() == NO)
{
return NO;
}
range.location = _scanLocation;
range.length = [string length];
if (range.location + range.length > myLength())
@ -988,7 +991,10 @@ typedef struct {
NSRange found;
unsigned int saveScanLocation = _scanLocation;
skipToNextField();
if (skipToNextField() == NO)
{
return NO;
}
range.location = _scanLocation;
range.length = myLength() - _scanLocation;
found = [_string rangeOfString: string