aboutsummaryrefslogtreecommitdiff
path: root/lcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcode.c')
-rw-r--r--lcode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lcode.c b/lcode.c
index 95ef900c..afed05d1 100644
--- a/lcode.c
+++ b/lcode.c
@@ -1951,6 +1951,11 @@ void luaK_finish (FuncState *fs) {
1951 SET_OPCODE(*pc, OP_GETTABLE); /* must get vararg there */ 1951 SET_OPCODE(*pc, OP_GETTABLE); /* must get vararg there */
1952 break; 1952 break;
1953 } 1953 }
1954 case OP_VARARG: {
1955 if (p->flag & PF_VATAB) /* function has a vararg table? */
1956 SETARG_k(*pc, 1); /* must get vararg there */
1957 break;
1958 }
1954 case OP_JMP: { /* to optimize jumps to jumps */ 1959 case OP_JMP: { /* to optimize jumps to jumps */
1955 int target = finaltarget(p->code, i); 1960 int target = finaltarget(p->code, i);
1956 fixjump(fs, i, target); /* jump directly to final target */ 1961 fixjump(fs, i, target); /* jump directly to final target */