From 48835c76c8df62fab4827a9835b351718d20df4b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 25 Nov 2021 10:11:05 -0300 Subject: Wrong assert in 'collectvalidlines' --- ldebug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ldebug.c') 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) { if (!p->is_vararg) /* regular function? */ i = 0; /* consider all instructions */ else { /* vararg function */ - lua_assert(p->code[0] == OP_VARARGPREP); + lua_assert(GET_OPCODE(p->code[0]) == OP_VARARGPREP); currentline = nextline(p, currentline, 0); i = 1; /* skip first instruction (OP_VARARGPREP) */ } -- cgit v1.2.3-55-g6feb