From 8a1a6097bef28df3875f5f9c2624952bd173cf81 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Tue, 6 Nov 2012 17:04:21 +0100 Subject: [PATCH] FFI: Fix signedness of bool. --- src/lj_cparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.11.4.GIT