Skip to content

Commit

Permalink
Fixed types.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdoe committed Feb 17, 2015
1 parent 5ac3e82 commit 23ace60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/OCMock/OCMInvocationMatcher.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ - (BOOL)matchesInvocation:(NSInvocation *)anInvocation
return NO;

NSMethodSignature *signature = [recordedInvocation methodSignature];
int n = (int)[signature numberOfArguments];
for(int i = 2; i < n; i++)
NSUInteger n = [signature numberOfArguments];
for(NSUInteger i = 2; i < n; i++)
{
if(ignoreNonObjectArgs && strcmp([signature getArgumentTypeAtIndex:i], @encode(id)))
{
Expand Down

0 comments on commit 23ace60

Please sign in to comment.