From: Mike Pall Date: Tue, 12 Jul 2022 22:32:31 +0000 (+0200) Subject: FFI: Fix sizeof expression in C parser for reference types. X-Git-Tag: v2.1.ROLLING~57^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=899093a9e0fa5b16f27016381ef4b15529dadff2;p=thirdparty%2FLuaJIT.git FFI: Fix sizeof expression in C parser for reference types. --- diff --git a/src/lj_cparse.c b/src/lj_cparse.c index 9cd26d67..df85d23b 100644 --- a/src/lj_cparse.c +++ b/src/lj_cparse.c @@ -457,7 +457,7 @@ static void cp_expr_sizeof(CPState *cp, CPValue *k, int wantsz) } else { cp_expr_unary(cp, k); } - info = lj_ctype_info(cp->cts, k->id, &sz); + info = lj_ctype_info_raw(cp->cts, k->id, &sz); if (wantsz) { if (sz != CTSIZE_INVALID) k->u32 = sz;