mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 15:32:38 +00:00
Fixed a couple of warning for comparisons between size_t and int.
This commit is contained in:
parent
ed792eba1e
commit
7459c7b6b6
@ -354,7 +354,8 @@ int Palette::findBestfit(int r, int g, int b) const
|
||||
#else
|
||||
register int bestfit;
|
||||
#endif
|
||||
int i, coldiff, lowest;
|
||||
int coldiff, lowest;
|
||||
size_t i;
|
||||
|
||||
assert(r >= 0 && r <= 255);
|
||||
assert(g >= 0 && g <= 255);
|
||||
|
@ -40,7 +40,8 @@ Palette *load_col_file(const char *filename)
|
||||
int pro = (size == 768)? false: true; /* is Animator Pro format? */
|
||||
div_t d = div(size-8, 3);
|
||||
Palette *pal = NULL;
|
||||
int c, r, g, b;
|
||||
int r, g, b;
|
||||
size_t c;
|
||||
FILE *f;
|
||||
|
||||
if (!(size) || (pro && d.rem)) /* invalid format */
|
||||
|
Loading…
x
Reference in New Issue
Block a user