From 23ace60b9bf5766ad5dc35bdcff48d0ef03530c0 Mon Sep 17 00:00:00 2001 From: Erik Doernenburg Date: Tue, 17 Feb 2015 10:40:38 +0100 Subject: [PATCH] Fixed types. --- Source/OCMock/OCMInvocationMatcher.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/OCMock/OCMInvocationMatcher.m b/Source/OCMock/OCMInvocationMatcher.m index 035e0241..340802bb 100644 --- a/Source/OCMock/OCMInvocationMatcher.m +++ b/Source/OCMock/OCMInvocationMatcher.m @@ -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))) {