Reduce minimum Lua frame size to 1.

This commit is contained in:
Mike Pall 2010-09-10 11:43:31 +02:00
parent 6fd315581c
commit daafc0b2a2

View File

@ -1233,7 +1233,7 @@ static void fs_init(LexState *ls, FuncState *fs)
fs->nuv = 0;
fs->bl = NULL;
fs->flags = 0;
fs->framesize = 2; /* Minimum frame size. */
fs->framesize = 1; /* Minimum frame size. */
fs->kt = lj_tab_new(L, 0, 0);
/* Anchor table of constants in stack to avoid being collected. */
settabV(L, L->top, fs->kt);