aboutsummaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-06-10 13:52:03 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-06-10 13:52:03 -0300
commit2598138eced28b6ff8d4db9550a4e70c26cd4baa (patch)
tree3af8e254e508a5dc5ce29c16d8197c542582d43d /lparser.c
parent4a67e48611c1ffaa6d474e443c3c89849c8b6e5f (diff)
downloadlua-2598138eced28b6ff8d4db9550a4e70c26cd4baa.tar.gz
lua-2598138eced28b6ff8d4db9550a4e70c26cd4baa.tar.bz2
lua-2598138eced28b6ff8d4db9550a4e70c26cd4baa.zip
new function 'luaK_codek' (detail)
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lparser.c b/lparser.c
index 45506b9c..753dbce2 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 2.61 2009/03/26 12:56:38 roberto Exp roberto $ 2** $Id: lparser.c,v 2.62 2009/04/30 17:42:21 roberto Exp roberto $
3** Lua Parser 3** Lua Parser
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -1085,7 +1085,7 @@ static void fornum (LexState *ls, TString *varname, int line) {
1085 if (testnext(ls, ',')) 1085 if (testnext(ls, ','))
1086 exp1(ls); /* optional step */ 1086 exp1(ls); /* optional step */
1087 else { /* default step = 1 */ 1087 else { /* default step = 1 */
1088 luaK_codeABx(fs, OP_LOADK, fs->freereg, luaK_numberK(fs, 1)); 1088 luaK_codek(fs, fs->freereg, luaK_numberK(fs, 1));
1089 luaK_reserveregs(fs, 1); 1089 luaK_reserveregs(fs, 1);
1090 } 1090 }
1091 forbody(ls, base, line, 1, 1); 1091 forbody(ls, base, line, 1, 1);