From c630e868ca31f5173f8a7fad6a001174a5c68331 Mon Sep 17 00:00:00 2001 From: Lucas Trzesniewski Date: Sun, 24 Apr 2022 17:16:49 +0200 Subject: [PATCH] Fix integer promotion causing a warning in MSVC (#111) --- src/pcre2_jit_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pcre2_jit_compile.c b/src/pcre2_jit_compile.c index d726c3c..32dec66 100644 --- a/src/pcre2_jit_compile.c +++ b/src/pcre2_jit_compile.c @@ -5886,7 +5886,7 @@ static BOOL check_fast_forward_char_pair_simd(compiler_common *common, fast_forw while (j < i) { b_pri = chars[j].last_count; - if (b_pri > 2 && a_pri + b_pri >= max_pri) + if (b_pri > 2 && (sljit_u32)a_pri + (sljit_u32)b_pri >= max_pri) { b1 = chars[j].chars[0]; b2 = chars[j].chars[1];