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.154 2016/06/22 15:48:25 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 2.155 2016/08/01 19:51:24 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 | */ |
@@ -1329,7 +1329,7 @@ static void fornum (LexState *ls, TString *varname, int line) { | |||
1329 | if (testnext(ls, ',')) | 1329 | if (testnext(ls, ',')) |
1330 | exp1(ls); /* optional step */ | 1330 | exp1(ls); /* optional step */ |
1331 | else { /* default step = 1 */ | 1331 | else { /* default step = 1 */ |
1332 | luaK_codek(fs, fs->freereg, luaK_intK(fs, 1)); | 1332 | luaK_int(fs, fs->freereg, 1); |
1333 | luaK_reserveregs(fs, 1); | 1333 | luaK_reserveregs(fs, 1); |
1334 | } | 1334 | } |
1335 | forbody(ls, base, line, 1, 1); | 1335 | forbody(ls, base, line, 1, 1); |