FFI: Fix sizeof expression in C parser for reference types.

master
Mike Pall 2022-07-13 00:32:31 +02:00
parent 36b2962d40
commit 899093a9e0
1 changed files with 1 additions and 1 deletions

View File

@ -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;