Skip to content

Commit 3df19c3

Browse files
committed
Fixed warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int'
1 parent 87a1866 commit 3df19c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IMG_ImageIO.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ static CFDictionaryRef CreateHintDictionary(CFStringRef uti_string_hint)
323323
if (num_entries > (size_t)palette->ncolors) {
324324
num_entries = (size_t)palette->ncolors;
325325
}
326-
palette->ncolors = num_entries;
326+
palette->ncolors = (int)num_entries;
327327
for (i = 0, entry = entries; i < num_entries; ++i) {
328328
palette->colors[i].r = entry[0];
329329
palette->colors[i].g = entry[1];

0 commit comments

Comments
 (0)