aboutsummaryrefslogtreecommitdiff
path: root/src
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 /src
parentc022692ab008102bf45786c8241f2898cef5586e (diff)
downloadluajit-8a1a6097bef28df3875f5f9c2624952bd173cf81.tar.gz
luajit-8a1a6097bef28df3875f5f9c2624952bd173cf81.tar.bz2
luajit-8a1a6097bef28df3875f5f9c2624952bd173cf81.zip
FFI: Fix signedness of bool.
Diffstat (limited to 'src')
-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:
1524 if ((cds & ~(CDF_SCL|CDF_BOOL|CDF_INT|CDF_SIGNED|CDF_UNSIGNED))) 1524 if ((cds & ~(CDF_SCL|CDF_BOOL|CDF_INT|CDF_SIGNED|CDF_UNSIGNED)))
1525 cp_errmsg(cp, 0, LJ_ERR_FFI_INVTYPE); 1525 cp_errmsg(cp, 0, LJ_ERR_FFI_INVTYPE);
1526 info |= CTF_BOOL; 1526 info |= CTF_BOOL;
1527 if (!(cds & CDF_SIGNED)) info |= CTF_UNSIGNED;
1527 if (!sz) { 1528 if (!sz) {
1528 if (!(cds & CDF_SIGNED)) info |= CTF_UNSIGNED;
1529 sz = 1; 1529 sz = 1;
1530 } 1530 }
1531 } else if ((cds & CDF_FP)) { 1531 } else if ((cds & CDF_FP)) {