Skip to content

Commit 7603b39

Browse files
author
junzhan.yzw
committed
64 bit simulate struct error
1 parent c11343c commit 7603b39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/wax_instance.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ static SEL getORIGSelector(SEL selector){
815815
static BOOL isMethodReplacedByInvocation(id klass, SEL selector){
816816
Method selectorMethod = class_getInstanceMethod(klass, selector);
817817
IMP imp = method_getImplementation(selectorMethod);
818-
#if WAX_IS_ARM_64 == 1
818+
#if defined(__arm64__)
819819
return imp == _objc_msgForward;
820820
#else
821821
return imp == _objc_msgForward || imp == (IMP)_objc_msgForward_stret;
@@ -866,7 +866,7 @@ static void hookForwardInvocation(id self, SEL sel, NSInvocation *anInvocation){
866866
}
867867
END_STACK_MODIFY(L, 0);
868868
}else{//cal original forwardInvocation method
869-
((void(*)(id, SEL, id))objc_msgSend)(self, getORIGSelector(sel), anInvocation);
869+
((void(*)(id, SEL, id))objc_msgSend)(self, @selector(ORIGforwardInvocation:), anInvocation);
870870
};
871871
}
872872

0 commit comments

Comments
 (0)