FFI: Fix signedness of bool.

This commit is contained in:
Mike Pall 2012-11-06 17:04:21 +01:00
parent c022692ab0
commit 8a1a6097be

View File

@ -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)) {