diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-20 16:53:55 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-20 16:53:55 -0300 |
| commit | 6a98aa0bb0426acdf4a9ef75b1d3200fd972e77d (patch) | |
| tree | 0cf827d0f9d328be0c3aedbb7def8bc964905415 /lparser.c | |
| parent | c354211744e80c14314b3a363e7d57f5751be835 (diff) | |
| download | lua-6a98aa0bb0426acdf4a9ef75b1d3200fd972e77d.tar.gz lua-6a98aa0bb0426acdf4a9ef75b1d3200fd972e77d.tar.bz2 lua-6a98aa0bb0426acdf4a9ef75b1d3200fd972e77d.zip | |
new opcode LOADI (for loading immediate integers)
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); |
