Browse Source

Fixed signed/unsigned comparison warning

Sam Lantinga 1 year ago
parent
commit
6e03914375
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/video/SDL_yuv.c

+ 1 - 1
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:
     case SDL_PIXELFORMAT_P010:
         pitches[0] = yuv_pitch;
         pitches[0] = yuv_pitch;
         uv_width = ((width + 1) / 2) * 2;
         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[0] = (const Uint8 *)yuv;
         planes[1] = planes[0] + pitches[0] * height;
         planes[1] = planes[0] + pitches[0] * height;
         break;
         break;