diff --git a/Source/OCMock/NSObject+OCMAdditions.m b/Source/OCMock/NSObject+OCMAdditions.m index 2d62bc61..f97ecbd3 100644 --- a/Source/OCMock/NSObject+OCMAdditions.m +++ b/Source/OCMock/NSObject+OCMAdditions.m @@ -46,7 +46,7 @@ + (IMP)instanceMethodForwarderForSelector:(SEL)aSelector } if(needsStructureReturn) - return (SEL)_objc_msgForward_stret; + return (IMP)_objc_msgForward_stret; #endif return _objc_msgForward;