We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c494f8d commit 395ab9aCopy full SHA for 395ab9a
JSONKit.m
@@ -848,7 +848,7 @@ - (void)dealloc
848
- (NSArray *)allObjects
849
{
850
NSParameterAssert(collection != NULL);
851
- NSUInteger count = [(NSArray *)collection count], atObject = 0UL;
+ NSUInteger count = [(NSDictionary *)collection count], atObject = 0UL;
852
id objects[count];
853
854
while((objects[atObject] = [self nextObject]) != NULL) { NSParameterAssert(atObject < count); atObject++; }
0 commit comments