Skip to content

Commit 395ab9a

Browse files
committed
Changed cast to NSDictionary per John's request
1 parent c494f8d commit 395ab9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JSONKit.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ - (void)dealloc
848848
- (NSArray *)allObjects
849849
{
850850
NSParameterAssert(collection != NULL);
851-
NSUInteger count = [(NSArray *)collection count], atObject = 0UL;
851+
NSUInteger count = [(NSDictionary *)collection count], atObject = 0UL;
852852
id objects[count];
853853

854854
while((objects[atObject] = [self nextObject]) != NULL) { NSParameterAssert(atObject < count); atObject++; }

0 commit comments

Comments
 (0)