Permalink
Browse files

Fix ambiguous method (initWithObjects:count:) compilation errors unde…

…r Clang 3.0.
  • Loading branch information...
1 parent c2146ff commit 3624e0f2eef838a68a78de992cde024bedd49455 @atnan atnan committed Sep 22, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 JSONKit.m
View
@@ -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

0 comments on commit 3624e0f

Please sign in to comment.