SDL_image: Fix -Wsign-compare warning

From b2862572cd5c069784d86dd59dad8ae3c9764c03 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 5 Jan 2023 19:36:24 +0100
Subject: [PATCH] Fix -Wsign-compare warning

---
 IMG.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/IMG.c b/IMG.c
index 959939cf..5bda4b38 100644
--- a/IMG.c
+++ b/IMG.c
@@ -229,7 +229,7 @@ static int IMG_string_equals(const char *str1, const char *str2)
 /* Load an image from an SDL datasource, optionally specifying the type */
 SDL_Surface *IMG_LoadTyped_RW(SDL_RWops *src, int freesrc, const char *type)
 {
-    int i;
+    size_t i;
     SDL_Surface *image;
 
     /* Make sure there is something to do.. */
@@ -359,7 +359,7 @@ IMG_Animation *IMG_LoadAnimation_RW(SDL_RWops *src, int freesrc)
 /* Load an animation from an SDL datasource, optionally specifying the type */
 IMG_Animation *IMG_LoadAnimationTyped_RW(SDL_RWops *src, int freesrc, const char *type)
 {
-    int i;
+    size_t i;
     IMG_Animation *anim;
     SDL_Surface *image;