Skip to content

Commit

Permalink
Avoid warning for Mac OS X build
Browse files Browse the repository at this point in the history
  • Loading branch information
stig committed Nov 10, 2013
1 parent 8743c93 commit b02a095
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/objc/SBJsonStreamParserAdapter.m
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ - (void)parser:(SBJsonStreamParser*)parser foundString:(NSString*)string {
- (void)addToPath {
if([path count]==0)
[path addObject:@"$"];
else if([[stack lastObject] isKindOfClass:[NSMutableArray class]])
[path addObject:[NSNumber numberWithInt:[[stack lastObject] count]]];
else if([[stack lastObject] isKindOfClass:[NSArray class]])
[path addObject:@([[stack lastObject] count])];
else
[path addObject:[keyStack lastObject]];
}
Expand All @@ -202,7 +202,7 @@ - (NSString *)pathString {
NSMutableString *pathString = [NSMutableString stringWithString:@"$"];
for(int i=1;i<[path count];i++) {
if([[path objectAtIndex:i] isKindOfClass:[NSNumber class]])
[pathString appendString:[NSString stringWithFormat:@"[%i]",[[path objectAtIndex:i] integerValue]]];
[pathString appendString:[NSString stringWithFormat:@"[%@]",[path objectAtIndex:i]]];
else
[pathString appendString:[NSString stringWithFormat:@".%@",[path objectAtIndex:i]]];
}
Expand Down

0 comments on commit b02a095

Please sign in to comment.