Fix buffer check in bytecode writer.

This commit is contained in:
Mike Pall 2012-06-28 15:13:26 +02:00
parent a9bf455b96
commit a751c8a5b5

View File

@ -178,6 +178,7 @@ static void bcwrite_kgc(BCWriteCtx *ctx, GCproto *pt)
} else {
lua_assert(o->gch.gct == ~LJ_TTAB);
tp = BCDUMP_KGC_TAB;
need = 1+2*5;
}
/* Write constant type. */
bcwrite_need(ctx, need);