Skip to content

Commit

Permalink
Fix warning about signed/unsigned mismatch (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
ltrzesniewski authored Dec 27, 2024
1 parent 2368531 commit 35eafc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pcre2_jit_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ switch(*cc)
if (max == 0)
return (*cc == OP_CRRANGE) ? 2 : 1;
max -= min;
if (max > (*cc == OP_CRRANGE ? 0 : 1))
if (max > (sljit_u32)(*cc == OP_CRRANGE ? 0 : 1))
max = 2;
return max;

Expand Down

0 comments on commit 35eafc9

Please sign in to comment.