File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments