Skip to content

Commit

Permalink
fix Windows warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
starwing committed Jan 26, 2023
1 parent 32d0b40 commit 7d15fad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -1745,11 +1745,11 @@ static void lpG_init(lp_State *S, lp_Glob *g, int limit) {
for (s = ps = i; i < e; ++i) {
if (lp_len(*i) != 2 || i->s[0] != '*' || i->s[1] != '*') continue;
if (i == s || i != ps) /* first, or not empty */
gl.pat = ps, gl.len = (i-ps), vec_push(L, g->stack, gl);
gl.pat = ps, gl.len = (int)(i-ps), vec_push(L, g->stack, gl);
ps = i + 1; /* ps points to pattern next to '**' */
}
if (lp_len(i[-1]) == 0) i -= 1, g->dironly = 1;
gl.pat = ps, gl.len = (i-ps), vec_push(L, g->stack, gl);
gl.pat = ps, gl.len = (int)(i-ps), vec_push(L, g->stack, gl);
g->current = (assert(vec_len(g->stack) >= 1), &g->stack[0]);
}

Expand Down

0 comments on commit 7d15fad

Please sign in to comment.