mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
FFI: Fix sizeof expression in C parser for reference types.
This commit is contained in:
parent
36b2962d40
commit
899093a9e0
@ -457,7 +457,7 @@ static void cp_expr_sizeof(CPState *cp, CPValue *k, int wantsz)
|
|||||||
} else {
|
} else {
|
||||||
cp_expr_unary(cp, k);
|
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 (wantsz) {
|
||||||
if (sz != CTSIZE_INVALID)
|
if (sz != CTSIZE_INVALID)
|
||||||
k->u32 = sz;
|
k->u32 = sz;
|
||||||
|
Loading…
Reference in New Issue
Block a user