diff --git a/Source/OCMock/NSObject+OCMAdditions.m b/Source/OCMock/NSObject+OCMAdditions.m index cf4674ea..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 _objc_msgForward_stret; + return (IMP)_objc_msgForward_stret; #endif return _objc_msgForward;