diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2013-03-27 21:11:05 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2013-03-27 21:11:05 +0900 |
commit | c8a4be7d731c28eaa486880862c7cdf18fc31373 (patch) | |
tree | ef26bd725cc2ea7d0e1dfaa475552355f2828e15 /src/gd_topal.c | |
parent | 77fcf312e6698f4ee81ea697226c3ebb9eca0ae6 (diff) | |
download | libgd-c8a4be7d731c28eaa486880862c7cdf18fc31373.tar.gz |
avoid the C99 flavor
Diffstat (limited to 'src/gd_topal.c')
-rw-r--r-- | src/gd_topal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gd_topal.c b/src/gd_topal.c index d1eaf5d..68f2ac2 100644 --- a/src/gd_topal.c +++ b/src/gd_topal.c @@ -1670,7 +1670,8 @@ static int gdImageTrueColorToPaletteBody (gdImagePtr oim, int dither, int colors remapped_ok = 1; const liq_palette *pal = liq_get_palette(remap); nim->transparent = -1; - for(int icolor=0; icolor < pal->count; icolor++) + unsigned int icolor; + for(icolor=0; icolor < pal->count; icolor++) { nim->open[icolor] = 0; nim->red[icolor] = pal->entries[icolor].r * gdRedMax/255; |