mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-17 08:01:24 +00:00
Do not advance start and get startType if we are at the end anyway.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@37134 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f33f962c25
commit
78d4babed7
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-09-22 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Modules/Parsers/ProjectCenter/PCParser.m
|
||||
Do not advance start and get startType if we are at the end anyway.
|
||||
|
||||
2013-09-21 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Modules/Parsers/ProjectCenter/PCParser.h
|
||||
|
|
|
@ -202,8 +202,13 @@ CodeType codeType(unichar *ch)
|
|||
(*impInvisible)(_handler, selInvisible, _uchar[start+j]);
|
||||
}
|
||||
}
|
||||
start = i;
|
||||
startType = codeType(_uchar+start);
|
||||
/* if we are at the end, we can getting the last stat char anyway
|
||||
and in any case it would not be valid */
|
||||
if (end != _length)
|
||||
{
|
||||
start = i;
|
||||
startType = codeType(_uchar+start);
|
||||
}
|
||||
}
|
||||
}
|
||||
NSLog(@"CodeParser end...");
|
||||
|
|
Loading…
Reference in a new issue