[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:
parent
48af214216
commit
e2d9ddce4c
|
@ -134,11 +134,11 @@ static void RCTProfileForwardInvocation(NSObject *self, __unused SEL cmd, NSInvo
|
||||||
static IMP RCTProfileMsgForward(NSObject *, SEL);
|
static IMP RCTProfileMsgForward(NSObject *, SEL);
|
||||||
static IMP RCTProfileMsgForward(NSObject *self, SEL selector)
|
static IMP RCTProfileMsgForward(NSObject *self, SEL selector)
|
||||||
{
|
{
|
||||||
IMP imp = _objc_msgForward;
|
IMP imp = (IMP)_objc_msgForward;
|
||||||
#if !defined(__arm64__)
|
#if !defined(__arm64__)
|
||||||
NSMethodSignature *signature = [self methodSignatureForSelector:selector];
|
NSMethodSignature *signature = [self methodSignatureForSelector:selector];
|
||||||
if (signature.methodReturnType[0] == _C_STRUCT_B && signature.methodReturnLength > 8) {
|
if (signature.methodReturnType[0] == _C_STRUCT_B && signature.methodReturnLength > 8) {
|
||||||
imp = _objc_msgForward_stret;
|
imp = (IMP)_objc_msgForward_stret;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return imp;
|
return imp;
|
||||||
|
|
Loading…
Reference in New Issue