Skip to content

Commit

Permalink
Fixed warning: implicit conversion loses integer precision: 'size_t' …
Browse files Browse the repository at this point in the history
…(aka 'unsigned long') to 'int'
  • Loading branch information
slouken committed Dec 6, 2024
1 parent f389281 commit 88d1384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IMG_ImageIO.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 88d1384

Please sign in to comment.