From 268fbcd4602a4d238b7e7d565785c56859e14373 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 17 Jun 2021 11:23:47 -0700 Subject: [PATCH] Fixed compiler warning on Visual Studio --- src/video/SDL_bmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/SDL_bmp.c b/src/video/SDL_bmp.c index ecf31aff4..ed6cf2e47 100644 --- a/src/video/SDL_bmp.c +++ b/src/video/SDL_bmp.c @@ -411,9 +411,9 @@ SDL_LoadBMP_RW(SDL_RWops * src, int freesrc) biClrUsed = 1 << biBitCount; } - if (biClrUsed > palette->ncolors) { + if (biClrUsed > (Uint32)palette->ncolors) { biClrUsed = 1 << biBitCount; /* try forcing it? */ - if (biClrUsed > palette->ncolors) { + if (biClrUsed > (Uint32)palette->ncolors) { SDL_SetError("Unsupported or incorrect biClrUsed field"); was_error = SDL_TRUE; goto done;