Skip to content

Commit e0a77be

Browse files
committed
Fixed semantics of return value.
1 parent 8e064c5 commit e0a77be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Source/OCMock/NSInvocation+OCMAdditions.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ - (BOOL)hasCharPointerArgument
2727
{
2828
const char *argType = OCMTypeWithoutQualifiers([signature getArgumentTypeAtIndex:i]);
2929
if(strcmp(argType, "*") == 0)
30-
return NO;
30+
return YES;
3131
}
32-
return YES;
32+
return NO;
3333
}
3434

3535

Source/OCMock/OCMInvocationMatcher.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ - (void)setInvocation:(NSInvocation *)anInvocation
3737
// When the method has a char* argument we do not retain the arguments. This makes it possible
3838
// to match char* args literally and with anyPointer. Not retaining the argument means that
3939
// in these cases tests that use their own autorelease pools may fail unexpectedly.
40-
if([anInvocation hasCharPointerArgument])
40+
if(![anInvocation hasCharPointerArgument])
4141
[anInvocation retainArguments];
4242
recordedInvocation = [anInvocation retain];
4343
}

0 commit comments

Comments
 (0)