SDL_image: Fixed warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'

From 88d13846119e799d47c4893c0127b96589d4e5c1 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 2 Dec 2024 16:08:17 -0800
Subject: [PATCH] Fixed warning: implicit conversion loses integer precision:
 'size_t' (aka 'unsigned long') to 'int'

---
 src/IMG_ImageIO.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/IMG_ImageIO.m b/src/IMG_ImageIO.m
index 43343ce5..1aeba26d 100644
--- a/src/IMG_ImageIO.m
+++ b/src/IMG_ImageIO.m
@@ -323,7 +323,7 @@ static CFDictionaryRef CreateHintDictionary(CFStringRef uti_string_hint)
                 if (num_entries > (size_t)palette->ncolors) {
                     num_entries = (size_t)palette->ncolors;
                 }
-                palette->ncolors = num_entries;
+                palette->ncolors = (int)num_entries;
                 for (i = 0, entry = entries; i < num_entries; ++i) {
                     palette->colors[i].r = entry[0];
                     palette->colors[i].g = entry[1];