Skip to content

Commit

Permalink
Merge pull request johnezang#50 from atnan/fixclang2errors
Browse files Browse the repository at this point in the history
Fix compilation errors under Clang 3.0
  • Loading branch information
johnezang committed Sep 22, 2011
2 parents c2146ff + 3624e0f commit 6d3938e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions JSONKit.m
Original file line number Diff line number Diff line change
Expand Up @@ -805,13 +805,13 @@ - (void)replaceObjectAtIndex:(NSUInteger)objectIndex withObject:(id)anObject
- (id)copyWithZone:(NSZone *)zone
{
NSParameterAssert((objects != NULL) && (count <= capacity));
return((mutations == 0UL) ? [self retain] : [[NSArray allocWithZone:zone] initWithObjects:objects count:count]);
return((mutations == 0UL) ? [self retain] : [(NSArray *)[NSArray allocWithZone:zone] initWithObjects:objects count:count]);
}

- (id)mutableCopyWithZone:(NSZone *)zone
{
NSParameterAssert((objects != NULL) && (count <= capacity));
return([[NSMutableArray allocWithZone:zone] initWithObjects:objects count:count]);
return([(NSMutableArray *)[NSMutableArray allocWithZone:zone] initWithObjects:objects count:count]);
}

@end
Expand Down

0 comments on commit 6d3938e

Please sign in to comment.