diff options
Diffstat (limited to 'test/monniaux/jpeg-6b/jquant2.c')
-rw-r--r-- | test/monniaux/jpeg-6b/jquant2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/monniaux/jpeg-6b/jquant2.c b/test/monniaux/jpeg-6b/jquant2.c index 32b2aa88..af601e33 100644 --- a/test/monniaux/jpeg-6b/jquant2.c +++ b/test/monniaux/jpeg-6b/jquant2.c @@ -529,9 +529,9 @@ compute_color (j_decompress_ptr cinfo, boxptr boxp, int icolor) } } - cinfo->colormap[0][icolor] = (JSAMPLE) DIVISION((c0total + (total>>1)), total); - cinfo->colormap[1][icolor] = (JSAMPLE) DIVISION((c1total + (total>>1)), total); - cinfo->colormap[2][icolor] = (JSAMPLE) DIVISION((c2total + (total>>1)), total); + cinfo->colormap[0][icolor] = (JSAMPLE) ((c0total + (total>>1)) / total); + cinfo->colormap[1][icolor] = (JSAMPLE) ((c1total + (total>>1)) / total); + cinfo->colormap[2][icolor] = (JSAMPLE) ((c2total + (total>>1)) / total); } |