diff options
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1739,10 +1739,8 @@ void luaV_execute (lua_State *L, CallInfo *ci) { | |||
1739 | vmbreak; | 1739 | vmbreak; |
1740 | } | 1740 | } |
1741 | vmcase(OP_TFORPREP) { | 1741 | vmcase(OP_TFORPREP) { |
1742 | if (!ttisnil(s2v(ra + 3))) { /* is 'toclose' not nil? */ | 1742 | /* create to-be-closed upvalue (if needed) */ |
1743 | /* create to-be-closed upvalue for it */ | 1743 | halfProtect(luaF_newtbcupval(L, ra + 3)); |
1744 | halfProtect(luaF_newtbcupval(L, ra + 3)); | ||
1745 | } | ||
1746 | pc += GETARG_Bx(i); | 1744 | pc += GETARG_Bx(i); |
1747 | i = *(pc++); /* go to next instruction */ | 1745 | i = *(pc++); /* go to next instruction */ |
1748 | lua_assert(GET_OPCODE(i) == OP_TFORCALL && ra == RA(i)); | 1746 | lua_assert(GET_OPCODE(i) == OP_TFORCALL && ra == RA(i)); |