[ReactNative] Fix cast warning in RCTProfile

Summary:
Buck is more strict than our current xcodeproj configuration is keeps warning
about this implicit cast, it's quite annoying.
This commit is contained in:
Tadeu Zagallo 2015-08-11 06:43:43 -07:00
parent 48af214216
commit e2d9ddce4c
1 changed files with 2 additions and 2 deletions

View File

@ -134,11 +134,11 @@ static void RCTProfileForwardInvocation(NSObject *self, __unused SEL cmd, NSInvo
static IMP RCTProfileMsgForward(NSObject *, SEL);
static IMP RCTProfileMsgForward(NSObject *self, SEL selector)
{
IMP imp = _objc_msgForward;
IMP imp = (IMP)_objc_msgForward;
#if !defined(__arm64__)
NSMethodSignature *signature = [self methodSignatureForSelector:selector];
if (signature.methodReturnType[0] == _C_STRUCT_B && signature.methodReturnLength > 8) {
imp = _objc_msgForward_stret;
imp = (IMP)_objc_msgForward_stret;
}
#endif
return imp;