summaryrefslogtreecommitdiff
path: root/src/gd_topal.c
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2013-03-27 21:11:05 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2013-03-27 21:11:05 +0900
commitc8a4be7d731c28eaa486880862c7cdf18fc31373 (patch)
treeef26bd725cc2ea7d0e1dfaa475552355f2828e15 /src/gd_topal.c
parent77fcf312e6698f4ee81ea697226c3ebb9eca0ae6 (diff)
downloadlibgd-c8a4be7d731c28eaa486880862c7cdf18fc31373.tar.gz
avoid the C99 flavor
Diffstat (limited to 'src/gd_topal.c')
-rw-r--r--src/gd_topal.c3
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;