Skip to content

Commit

Permalink
fix -Wsign-compare warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Sep 14, 2023
1 parent 52a898d commit 2d9afcb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SDL12_compat.c
Expand Up @@ -2046,7 +2046,7 @@ SDL_JoystickOpened(int device_index)
}

static SDL_PixelFormatEnum
BPPToPixelFormat(int bpp)
BPPToPixelFormat(unsigned bpp)
{
#if !SDL_VERSION_ATLEAST(2,0,14)
#define SDL_PIXELFORMAT_XRGB8888 SDL_PIXELFORMAT_RGB888
Expand Down Expand Up @@ -2244,7 +2244,7 @@ Init12VidModes(void)
{
const int total = SDL20_GetNumDisplayModes(VideoDisplayIndex);
const char *maxmodestr;
const int max_bpp = SDL12Compat_GetHintInt("SDL12COMPAT_MAX_BPP", 32);
const unsigned max_bpp = SDL12Compat_GetHintInt("SDL12COMPAT_MAX_BPP", 32);
VideoModeList *vmode = NULL;
void *ptr = NULL;
int i, j;
Expand Down Expand Up @@ -2413,7 +2413,7 @@ Init12Video(void)
{
const char *driver = SDL20_GetCurrentVideoDriver();
const char *scale_method_env = SDL12Compat_GetHint("SDL12COMPAT_SCALE_METHOD");
const int max_bpp = SDL12Compat_GetHintInt("SDL12COMPAT_MAX_BPP", 32);
const unsigned max_bpp = SDL12Compat_GetHintInt("SDL12COMPAT_MAX_BPP", 32);
SDL_DisplayMode mode;
int i;

Expand Down

0 comments on commit 2d9afcb

Please sign in to comment.