mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-04-20 05:53:26 +00:00
FFI: Fix for cdata vs. non-cdata arithmetic and comparisons.
Thanks to Roman Tsisyk.
This commit is contained in:
parent
66515a054c
commit
247ead6718
@ -1434,6 +1434,7 @@ void LJ_FASTCALL recff_cdata_arith(jit_State *J, RecordFFData *rd)
|
||||
}
|
||||
} else if (!tref_isnum(tr)) {
|
||||
tr = 0;
|
||||
ct = ctype_get(cts, CTID_P_VOID);
|
||||
}
|
||||
ok:
|
||||
s[i] = ct;
|
||||
|
Loading…
Reference in New Issue
Block a user