8000 FFI: Fix sizeof expression in C parser for reference types. · LuaJIT/LuaJIT@899093a · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 899093a

Browse files
author
Mike Pall
committed
FFI: Fix sizeof expression in C parser for reference types.
1 parent 36b2962 commit 899093a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lj_cparse.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ static void cp_expr_sizeof(CPState *cp, CPValue *k, int wantsz)
457457
} else {
458458
cp_expr_unary(cp, k);
459459
}
460-
info = lj_ctype_info(cp->cts, k->id, &sz);
460+
info = lj_ctype_info_raw(cp->cts, k->id, &sz);
461461
if (wantsz) {
462462
if (sz != CTSIZE_INVALID)
463463
k->u32 = sz;

0 commit comments

Comments
 (0)
0