diff --git a/src/pcre2_jit_compile.c b/src/pcre2_jit_compile.c index 81b91a813..175eb6853 100644 --- a/src/pcre2_jit_compile.c +++ b/src/pcre2_jit_compile.c @@ -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;