From 6e03914375e3f698a9b1bbd5aa2d80ec0d4a69d8 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 3 Mar 2024 11:36:23 -0800 Subject: [PATCH] Fixed signed/unsigned comparison warning --- src/video/SDL_yuv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/SDL_yuv.c b/src/video/SDL_yuv.c index b9dbf7726d..2d1d001b26 100644 --- a/src/video/SDL_yuv.c +++ b/src/video/SDL_yuv.c @@ -230,7 +230,7 @@ static int GetYUVPlanes(int width, int height, Uint32 format, const void *yuv, i case SDL_PIXELFORMAT_P010: pitches[0] = yuv_pitch; uv_width = ((width + 1) / 2) * 2; - pitches[1] = SDL_max(pitches[0], uv_width * sizeof(Uint16)); + pitches[1] = SDL_max(pitches[0], (int)(uv_width * sizeof(Uint16))); planes[0] = (const Uint8 *)yuv; planes[1] = planes[0] + pitches[0] * height; break;