mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-08 07:34:07 +00:00
Fix buffer check in bytecode writer.
This commit is contained in:
parent
a9bf455b96
commit
a751c8a5b5
@ -178,6 +178,7 @@ static void bcwrite_kgc(BCWriteCtx *ctx, GCproto *pt)
|
|||||||
} else {
|
} else {
|
||||||
lua_assert(o->gch.gct == ~LJ_TTAB);
|
lua_assert(o->gch.gct == ~LJ_TTAB);
|
||||||
tp = BCDUMP_KGC_TAB;
|
tp = BCDUMP_KGC_TAB;
|
||||||
|
need = 1+2*5;
|
||||||
}
|
}
|
||||||
/* Write constant type. */
|
/* Write constant type. */
|
||||||
bcwrite_need(ctx, need);
|
bcwrite_need(ctx, need);
|
||||||
|
Loading…
Reference in New Issue
Block a user