mirror of
https://github.com/lua/lua
synced 2026-09-27 00:28:25 +03:00
local is valid only after adjust
This commit is contained in:
parent
7f867eb0b9
commit
b622282973
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lparser.c,v 1.98 2000/06/21 18:13:56 roberto Exp roberto $
|
||||
** $Id: lparser.c,v 1.99 2000/06/26 19:28:31 roberto Exp roberto $
|
||||
** LL(1) Parser and code generator for Lua
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -936,8 +936,8 @@ static void localstat (LexState *ls) {
|
|||
nexps = explist1(ls);
|
||||
else
|
||||
nexps = 0;
|
||||
adjustlocalvars(ls, nvars);
|
||||
adjust_mult_assign(ls, nvars, nexps);
|
||||
adjustlocalvars(ls, nvars);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue