Wrong assert in 'collectvalidlines'
diff --git a/ldebug.c b/ldebug.c
index 30a2882..dc5f78c 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -304,7 +304,7 @@
     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) */
     }
diff --git a/testes/db.lua b/testes/db.lua
index 11dfd26..e069972 100644
--- a/testes/db.lua
+++ b/testes/db.lua
@@ -225,7 +225,7 @@
     -- 5th line is empty
   end, {3, 4, 6})
 
-  checkactivelines(function (...) end, {0})
+  checkactivelines(function (a, b, ...) end, {0})
 
   checkactivelines(function (a, b)
   end, {1})