From 6b42f3be4f71005f377eff213b16fa7e35d61962 Mon Sep 17 00:00:00 2001 From: Sam Lantinga 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 317de5e92..0bd4edb5e 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];