diff options
author | Mike Pall <mike> | 2022-07-13 00:32:31 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2022-07-13 00:32:31 +0200 |
commit | 899093a9e0fa5b16f27016381ef4b15529dadff2 (patch) | |
tree | d22ed2cdaeb209670a9b49224474e09237a704d2 | |
parent | 36b2962d400db3981a7d7322f85c469240eb6f3b (diff) | |
download | luajit2-899093a9e0fa5b16f27016381ef4b15529dadff2.tar.gz |
FFI: Fix sizeof expression in C parser for reference types.
-rw-r--r-- | src/lj_cparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |