summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2012-11-06 17:04:21 +0100
committerMike Pall <mike>2012-11-06 17:04:21 +0100
commit8a1a6097bef28df3875f5f9c2624952bd173cf81 (patch)
tree87e99db345510b0831e79148f634e51bb5682484
parentc022692ab008102bf45786c8241f2898cef5586e (diff)
downloadluajit2-8a1a6097bef28df3875f5f9c2624952bd173cf81.tar.gz
FFI: Fix signedness of bool.
-rw-r--r--src/lj_cparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_cparse.c b/src/lj_cparse.c
index 6642e8d8..9121da11 100644
--- a/src/lj_cparse.c
+++ b/src/lj_cparse.c
@@ -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 (!(cds & CDF_SIGNED)) info |= CTF_UNSIGNED;
if (!sz) {
- if (!(cds & CDF_SIGNED)) info |= CTF_UNSIGNED;
sz = 1;
}
} else if ((cds & CDF_FP)) {