FFI/MacOS: Fix calling convention for enums.
Thanks to Sergey Kaplun. #1455
This commit is contained in:
parent
8f421c81ec
commit
b925b3e3fc
@ -1091,7 +1091,7 @@ static int ccall_set_args(lua_State *L, CTState *cts, CType *ct,
|
||||
if (CCALL_ALIGN_STACKARG) { /* Align argument on stack. */
|
||||
MSize align = (1u << ctype_align(ccall_struct_align(cts, d))) - 1;
|
||||
#if LJ_TARGET_ARM64 && LJ_TARGET_OSX
|
||||
isva = 1;
|
||||
isva = ctype_isstruct(d->info);
|
||||
#endif
|
||||
if (rp || (CCALL_PACK_STACKARG && isva && align < CTSIZE_PTR-1))
|
||||
align = CTSIZE_PTR-1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user