diff options
Diffstat (limited to 'lparser.c')
-rw-r--r-- | lparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |