Skip to content
Browse files

Surpress "multiple methods named" error

I realize that `collection` won't always be an NSArray, but the cast will let the compiler know to expect a NSUInteger return type instead of `size_t` which is also a return type a method named `count` inside of JSONKit.
  • Loading branch information...
1 parent c2ef692 commit c494f8daf3d8abd20d329f7c2d82be3c042555ab @soffes soffes committed Nov 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 JSONKit.m
View
2 JSONKit.m
@@ -848,7 +848,7 @@ - (void)dealloc
- (NSArray *)allObjects
{
NSParameterAssert(collection != NULL);
- NSUInteger count = [collection count], atObject = 0UL;
+ NSUInteger count = [(NSArray *)collection count], atObject = 0UL;
id objects[count];
while((objects[atObject] = [self nextObject]) != NULL) { NSParameterAssert(atObject < count); atObject++; }

0 comments on commit c494f8d

Please sign in to comment.
Something went wrong with that request. Please try again.