Skip to content

Commit

Permalink
mmm2
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed May 14, 2024
1 parent 0683a99 commit eda856b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cluacov/deepactivelines.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static Proto *get_proto(lua_State *L) {
** information. (A power of two allows fast divisions.)
*/
#if !defined(MAXIWTHABS)
#define MAXIWTHABS 120
#define MAXIWTHABS 128
#endif

/*
Expand Down Expand Up @@ -117,12 +117,16 @@ static void add_activelines(lua_State *L, Proto *p) {
int i;
int currentline = p->linedefined;

#if LUA_VERSION_RELEASE_NUM >= 50404
if (!p->is_vararg) /* regular function? */
i = 0; /* consider all instructions */
else { /* vararg function */
currentline = nextline(p, currentline, 0);
i = 1; /* skip first instruction (OP_VARARGPREP) */
}
#else
i = 0;
#endif

for (; i < p->sizelineinfo; i++) { /* for all lines with code */
currentline = nextline(p, currentline, i);
Expand Down

0 comments on commit eda856b

Please sign in to comment.