Skip to content

Commit

Permalink
Update NSObject+KeyExtraction.m
Browse files Browse the repository at this point in the history
Fix compilation error.
  • Loading branch information
gcasa authored Aug 31, 2024
1 parent 9152753 commit 85317ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions XCode/NSObject+KeyExtraction.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ - (NSArray *) keysForObject: (id)object
unsigned int methodCount = 0;
Method *methods = class_copyMethodList([object class], &methodCount);
NSMutableArray *result = [NSMutableArray arrayWithCapacity: methodCount];

for (unsigned int i = 0; i < methodCount; i++)
NSUInteger i = 0;

for (i = 0; i < methodCount; i++)
{
Method method = methods[i];
const char *selName = sel_getName(method_getName(method));
Expand Down

0 comments on commit 85317ad

Please sign in to comment.