Fix unintended fall through in a switch statement in Steptalk detected

by clang's static analyzer


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@34731 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2012-02-07 09:29:14 +00:00
parent f7b199f99b
commit 91ca747a02
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2012-02-07 Wolfgang Lux <wolfgang.lux@gmail.com>
* STSourceReader.m (-lineNumberForIndex:): Fix unintended fall through
in a switch statement detected by clang.
2012-02-07 Wolfgang Lux <wolfgang.lux@gmail.com>
* STCompiledScript.m (-executedInEnvironment:):

View file

@ -46,7 +46,7 @@ static NSCharacterSet *validCharacterCharacterSet;
{
case 0x000a: if(cr)
{ cr = 0; break; }
case 0x000d: cr = 1;
case 0x000d: cr = 1; break;
case 0x2028:
case 0x2029: cr = 0;
line++;
@ -153,7 +153,7 @@ static NSString *_STNormalizeStringToken(NSString *token)
{
[super init];
ASSIGN(source,aString);
source = RETAIN(aString);
srcRange = range;
srcOffset = range.location;
tokenRange = NSMakeRange(0,0);