New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add LP64 to fix iphone4/5 for pr#794 #795

Closed
wants to merge 4 commits into
base: master
from
Closed
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+6 −1
Diff settings

Always

Just for now

- add LP64 to fix iphone4/5

  • Loading branch information...
ZenonHuang committed Aug 15, 2017
commit fa2523c33727048771b4e555cce1edae06ca67f4
Copy path View file
@@ -984,9 +984,14 @@ static void overrideMethod(Class cls, NSString *selectorName, JSValue *function,
NSUInteger valueSize = 0;
NSGetSizeAndAlignment(typeDescription, &valueSize, NULL);

if (valueSize == 1 || valueSize == 2 || valueSize == 4 || valueSize == 8 || valueSize == 16) {
if (valueSize == 1 || valueSize == 2 || valueSize == 4 || valueSize == 8 ) {
methodReturnsStructValue = NO;
}
#if defined(__LP64__) && __LP64__
if (valueSize == 16) {
methodReturnsStructValue = NO;
}
#endif
} @catch (__unused NSException *e) {}
}
if (methodReturnsStructValue) {
ProTip! Use n and p to navigate between commits in a pull request.