mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Fix size calculation for closure structs.
This commit is contained in:
parent
07e1a0d138
commit
9c8f42573f
@ -435,8 +435,8 @@ typedef union GCfunc {
|
||||
#define iscfunc(fn) ((fn)->c.ffid == FF_C)
|
||||
#define isffunc(fn) ((fn)->c.ffid > FF_C)
|
||||
#define funcproto(fn) check_exp(isluafunc(fn), &gcref((fn)->l.pt)->pt)
|
||||
#define sizeCfunc(n) (sizeof(GCfuncC) + sizeof(TValue)*((n)-1))
|
||||
#define sizeLfunc(n) (sizeof(GCfuncL) + sizeof(TValue *)*((n)-1))
|
||||
#define sizeCfunc(n) (sizeof(GCfuncC)-sizeof(TValue)+sizeof(TValue)*(n))
|
||||
#define sizeLfunc(n) (sizeof(GCfuncL)-sizeof(GCRef)+sizeof(GCRef)*(n))
|
||||
|
||||
/* -- Table object -------------------------------------------------------- */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user