From e2d9ddce4cee52d96a85e210af0b1d95ec68a985 Mon Sep 17 00:00:00 2001 From: Tadeu Zagallo Date: Tue, 11 Aug 2015 06:43:43 -0700 Subject: [PATCH] [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. --- React/Base/RCTProfile.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/React/Base/RCTProfile.m b/React/Base/RCTProfile.m index e7483a538..a7021415f 100644 --- a/React/Base/RCTProfile.m +++ b/React/Base/RCTProfile.m @@ -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;