diff --git a/src/IMG_ImageIO.m b/src/IMG_ImageIO.m index 317de5e9..0bd4edb5 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];