Fixed a couple of warning for comparisons between size_t and int.

This commit is contained in:
David Capello 2010-04-20 23:46:03 -03:00
parent ed792eba1e
commit 7459c7b6b6
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -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 */