OP_TFORLOOP uses extra stack space

This commit is contained in:
Roberto Ierusalimschy
2002-12-11 10:34:22 -02:00
parent 9e8face8d8
commit 73517e86b0
4 changed files with 8 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lcode.c,v 1.113 2002/11/14 16:15:53 roberto Exp roberto $
** $Id: lcode.c,v 1.114 2002/12/04 17:38:31 roberto Exp roberto $
** Code generator for Lua
** See Copyright Notice in lua.h
*/
@@ -176,7 +176,7 @@ void luaK_concat (FuncState *fs, int *l1, int l2) {
}
static void luaK_checkstack (FuncState *fs, int n) {
void luaK_checkstack (FuncState *fs, int n) {
int newstack = fs->freereg + n;
if (newstack > fs->f->maxstacksize) {
if (newstack >= MAXSTACK)