Skip to content
Browse files

Changed cast to NSDictionary per John's request

  • Loading branch information...
1 parent c494f8d commit 395ab9aef75dd0d99e1c23820b844b39d53e10d9 @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 = [(NSArray *)collection count], atObject = 0UL;
+ NSUInteger count = [(NSDictionary *)collection count], atObject = 0UL;
id objects[count];
while((objects[atObject] = [self nextObject]) != NULL) { NSParameterAssert(atObject < count); atObject++; }

0 comments on commit 395ab9a

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