Skip to content

Commit

Permalink
64 bit simulate struct error
Browse files Browse the repository at this point in the history
  • Loading branch information
junzhan.yzw committed Oct 23, 2015
1 parent c11343c commit 7603b39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/wax_instance.m
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ static SEL getORIGSelector(SEL selector){
static BOOL isMethodReplacedByInvocation(id klass, SEL selector){
Method selectorMethod = class_getInstanceMethod(klass, selector);
IMP imp = method_getImplementation(selectorMethod);
#if WAX_IS_ARM_64 == 1
#if defined(__arm64__)
return imp == _objc_msgForward;
#else
return imp == _objc_msgForward || imp == (IMP)_objc_msgForward_stret;
Expand Down Expand Up @@ -866,7 +866,7 @@ static void hookForwardInvocation(id self, SEL sel, NSInvocation *anInvocation){
}
END_STACK_MODIFY(L, 0);
}else{//cal original forwardInvocation method
((void(*)(id, SEL, id))objc_msgSend)(self, getORIGSelector(sel), anInvocation);
((void(*)(id, SEL, id))objc_msgSend)(self, @selector(ORIGforwardInvocation:), anInvocation);
};
}

Expand Down

0 comments on commit 7603b39

Please sign in to comment.