aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldebug.c b/ldebug.c
index 30a28828..dc5f78c6 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -304,7 +304,7 @@ static void collectvalidlines (lua_State *L, Closure *f) {
304 if (!p->is_vararg) /* regular function? */ 304 if (!p->is_vararg) /* regular function? */
305 i = 0; /* consider all instructions */ 305 i = 0; /* consider all instructions */
306 else { /* vararg function */ 306 else { /* vararg function */
307 lua_assert(p->code[0] == OP_VARARGPREP); 307 lua_assert(GET_OPCODE(p->code[0]) == OP_VARARGPREP);
308 currentline = nextline(p, currentline, 0); 308 currentline = nextline(p, currentline, 0);
309 i = 1; /* skip first instruction (OP_VARARGPREP) */ 309 i = 1; /* skip first instruction (OP_VARARGPREP) */
310 } 310 }