aom: resize_sse2.c: fix integer sanitizer conversion warning

From b2f80f721fe87547e3bae73be550e3d75ba478ad Mon Sep 17 00:00:00 2001
From: James Zern <[EMAIL REDACTED]>
Date: Fri, 10 May 2024 11:01:58 -0700
Subject: [PATCH] resize_sse2.c: fix integer sanitizer conversion warning

add missing cast in call to _mm_set1_epi8().

This is the same change that was made in resize_avx2.c:
ae7e8cc435 resize_avx2.c: fix integer sanitizer conversion warning

fixes:
implicit conversion from type 'uint8_t' (aka 'unsigned char') of value
255 (8-bit, unsigned) to type 'char' changed the value to -1 (8-bit,
signed)

Change-Id: I0fcddfb8003f659eceaafc8fdbfae4dea723fbc6
---
 av1/common/x86/resize_sse2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/av1/common/x86/resize_sse2.c b/av1/common/x86/resize_sse2.c
index c68371cb0..f0470a3f3 100644
--- a/av1/common/x86/resize_sse2.c
+++ b/av1/common/x86/resize_sse2.c
@@ -102,7 +102,7 @@ bool av1_resize_vert_dir_sse2(uint8_t *intbuf, uint8_t *output, int out_stride,
   const __m128i round_const_bits = _mm_set1_epi32((1 << bits) >> 1);
   const __m128i round_shift_bits = _mm_cvtsi32_si128(bits);
   const uint8_t max_pixel = 255;
-  const __m128i clip_pixel = _mm_set1_epi8(max_pixel);
+  const __m128i clip_pixel = _mm_set1_epi8((char)max_pixel);
   const __m128i zero = _mm_setzero_si128();
   prepare_filter_coeffs(av1_down2_symeven_half_filter, coeffs_y);