SDL_image: Fixed compile warnings on Xcode

From c17d2ac05492f49170a6024202432a9e54330d05 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 30 Apr 2022 13:04:26 -0700
Subject: [PATCH] Fixed compile warnings on Xcode

---
 IMG_ImageIO.m | 2 +-
 IMG_qoi.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/IMG_ImageIO.m b/IMG_ImageIO.m
index f5b6833..5021f07 100644
--- a/IMG_ImageIO.m
+++ b/IMG_ImageIO.m
@@ -306,7 +306,7 @@ static CFDictionaryRef CreateHintDictionary(CFStringRef uti_string_hint)
     }
 
     CGColorSpaceGetColorTable(color_space, entries);
-    surface = SDL_CreateRGBSurface(SDL_SWSURFACE, (int)w, (int)h, bits_per_pixel, 0, 0, 0, 0);
+    surface = SDL_CreateRGBSurface(SDL_SWSURFACE, (int)w, (int)h, (int)bits_per_pixel, 0, 0, 0, 0);
     if (surface) {
         uint8_t* pixels = (uint8_t*)surface->pixels;
         CGDataProviderRef provider = CGImageGetDataProvider(image_ref);
diff --git a/IMG_qoi.c b/IMG_qoi.c
index 30c84d8..03cc18b 100644
--- a/IMG_qoi.c
+++ b/IMG_qoi.c
@@ -69,7 +69,7 @@ SDL_Surface *IMG_LoadQOI_RW(SDL_RWops *src)
         return NULL;
     }
 
-    pixel_data = qoi_decode(data, size, &image_info, 4);
+    pixel_data = qoi_decode(data, (int)size, &image_info, 4);
     SDL_free(data);
     if ( !pixel_data ) {
         IMG_SetError("Couldn't parse QOI image");