This commit is contained in:
Pawel Kolodziejski
2008-07-29 17:55:30 +00:00
parent 198249fdf4
commit c7e28a1bcb
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -292,7 +292,7 @@ static void singlevar(LexState *ls, TaggedString *n, vardesc *var, int32 prev) {
var->info = i;
} else { // check shadowing
FuncState *level = fs;
while (level = level->prev)
while ((level = level->prev))
if (aux_localname(level, n) >= 0)
luaX_syntaxerror(ls, "cannot access a variable in outer scope", n->str);
var->k = VGLOBAL;