diff options
Diffstat (limited to 'lcode.c')
-rw-r--r-- | lcode.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcode.c,v 1.45 2000/08/09 14:49:13 roberto Exp roberto $ | 2 | ** $Id: lcode.c,v 1.46 2000/08/09 19:16:57 roberto Exp roberto $ |
3 | ** Code generator for Lua | 3 | ** Code generator for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -333,7 +333,6 @@ void luaK_tostack (LexState *ls, expdesc *v, int onlyone) { | |||
333 | luaK_deltastack(fs, -1); /* next PUSHes may be skipped */ | 333 | luaK_deltastack(fs, -1); /* next PUSHes may be skipped */ |
334 | } | 334 | } |
335 | p_nil = code_label(fs, OP_PUSHNILJMP, 0); | 335 | p_nil = code_label(fs, OP_PUSHNILJMP, 0); |
336 | luaK_deltastack(fs, -1); /* next PUSH is skipped */ | ||
337 | p_1 = code_label(fs, OP_PUSHINT, 1); | 336 | p_1 = code_label(fs, OP_PUSHINT, 1); |
338 | luaK_patchlist(fs, j, luaK_getlabel(fs)); | 337 | luaK_patchlist(fs, j, luaK_getlabel(fs)); |
339 | } | 338 | } |
@@ -690,7 +689,7 @@ const struct OpProperties luaK_opproperties[NUM_OPCODES] = { | |||
690 | {iS, 0, 1}, /* OP_JMPONT */ | 689 | {iS, 0, 1}, /* OP_JMPONT */ |
691 | {iS, 0, 1}, /* OP_JMPONF */ | 690 | {iS, 0, 1}, /* OP_JMPONF */ |
692 | {iS, 0, 0}, /* OP_JMP */ | 691 | {iS, 0, 0}, /* OP_JMP */ |
693 | {iO, 1, 0}, /* OP_PUSHNILJMP */ | 692 | {iO, 0, 0}, /* OP_PUSHNILJMP */ |
694 | {iS, 0, 0}, /* OP_FORPREP */ | 693 | {iS, 0, 0}, /* OP_FORPREP */ |
695 | {iS, 0, 3}, /* OP_FORLOOP */ | 694 | {iS, 0, 3}, /* OP_FORLOOP */ |
696 | {iS, 3, 0}, /* OP_LFORPREP */ | 695 | {iS, 3, 0}, /* OP_LFORPREP */ |