mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
FFI: Fix signedness of bool.
This commit is contained in:
parent
c022692ab0
commit
8a1a6097be
@ -1524,8 +1524,8 @@ end_decl:
|
||||
if ((cds & ~(CDF_SCL|CDF_BOOL|CDF_INT|CDF_SIGNED|CDF_UNSIGNED)))
|
||||
cp_errmsg(cp, 0, LJ_ERR_FFI_INVTYPE);
|
||||
info |= CTF_BOOL;
|
||||
if (!sz) {
|
||||
if (!(cds & CDF_SIGNED)) info |= CTF_UNSIGNED;
|
||||
if (!sz) {
|
||||
sz = 1;
|
||||
}
|
||||
} else if ((cds & CDF_FP)) {
|
||||
|
Loading…
Reference in New Issue
Block a user