mirror of
https://github.com/gnustep/libs-steptalk.git
synced 2025-02-21 02:31:01 +00:00
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:
parent
f7b199f99b
commit
91ca747a02
2 changed files with 7 additions and 2 deletions
|
@ -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:):
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue