--- /local/app/leptonlib-1.56/src/colorquant1.c 2008-05-13 18:34:39.000000000 +0400 +++ src/colorquant1.c 2008-05-15 12:48:13.000000000 +0400 @@ -2607,7 +2607,7 @@ l_int32 *pnerrors) { l_int32 w, h, wpls, wpld, i, j, nerrors; -l_int32 ncubes, depth, cindex, val, oval; +l_int32 ncubes, depth, cindex, oval; l_int32 rval, gval, bval; l_int32 *octarray; l_uint32 octindex; --- /local/app/leptonlib-1.56/src/colorquant2.c 2008-05-13 18:34:39.000000000 +0400 +++ src/colorquant2.c 2008-05-15 12:48:42.000000000 +0400 @@ -420,7 +420,7 @@ /* Re-sort by the product of pixel occupancy times the size * in color space. */ phs = pheapCreate(0, L_SORT_DECREASING); - while (vbox = (L_BOX3D *)pheapRemove(ph)) { + while ((vbox = (L_BOX3D *)pheapRemove(ph))) { vbox->sortparam = vbox->npix * vbox->vol; pheapAdd(phs, vbox); } @@ -460,7 +460,7 @@ /* Re-sort by pixel occupancy. This is not necessary, * but it makes a more useful listing. */ ph = pheapCreate(0, L_SORT_DECREASING); - while (vbox = (L_BOX3D *)pheapRemove(phs)) { + while ((vbox = (L_BOX3D *)pheapRemove(phs))) { vbox->sortparam = vbox->npix; /* vbox->sortparam = vbox->npix * vbox->vol; */ pheapAdd(ph, vbox);