summaryrefslogtreecommitdiff
path: root/lib/lua/src
diff options
context:
space:
mode:
authorpixel <pixel>2005-01-02 05:01:17 +0000
committerpixel <pixel>2005-01-02 05:01:17 +0000
commit110e4c790588674d11dfd64cbb3ec97f7d0553bd (patch)
tree6e32b1e74a442b89451a9e167090cafb421be5ed /lib/lua/src
parent4710572bf3f2fb202d0cb3dda95ef28c85ea1b81 (diff)
"Whoops"
Diffstat (limited to 'lib/lua/src')
-rw-r--r--lib/lua/src/lparser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lua/src/lparser.c b/lib/lua/src/lparser.c
index 5cd7018..227e27a 100644
--- a/lib/lua/src/lparser.c
+++ b/lib/lua/src/lparser.c
@@ -1,5 +1,5 @@
/*
-** $Id: lparser.c,v 1.5 2004-12-27 19:52:24 pixel Exp $
+** $Id: lparser.c,v 1.6 2005-01-02 05:01:17 pixel Exp $
** Lua Parser
** See Copyright Notice in lua.h
*/
@@ -1143,7 +1143,7 @@ static void localfunc (LexState *ls) {
expdesc v, b;
FuncState *fs = ls->fs;
new_localvar(ls, str_checkname(ls), 0);
- init_exp(&v, VLOCAL, fs->freereg++);
+ init_exp(&v, VLOCAL, fs->freereg);
luaK_reserveregs(fs, 1);
adjustlocalvars(ls, 1);
body(ls, &b, 0, ls->linenumber);