OP_TFORLOOP uses extra stack space
This commit is contained in:
4
lcode.c
4
lcode.c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user