diff options
author | Robin Watts <robin.watts@artifex.com> | 2010-04-28 23:19:01 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2010-04-28 23:19:01 +0000 |
commit | d6c4613f2b14eab59bf13ba00e0d5d5f03dad3e3 (patch) | |
tree | 6bc3abe1f718b2fdc2ffef3ded3bc839fa787e83 /gs/base/gxcht.c | |
parent | 8a4a7af763e9b18cccd1bde6203ea5ea9b49bbfd (diff) |
Eliminate some warnings in gxcht.c (keep shifts < size of uint).
No local cluster differences reported, or expected.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11150 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/base/gxcht.c')
-rw-r--r-- | gs/base/gxcht.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gs/base/gxcht.c b/gs/base/gxcht.c index df19fc74b..c941f02a8 100644 --- a/gs/base/gxcht.c +++ b/gs/base/gxcht.c @@ -234,7 +234,7 @@ gx_dc_ht_colored_write( if (num_comps > 8 * sizeof(uint)) { tmp_mask = (uint)plane_mask; req_size += enc_u_sizew(tmp_mask); - tmp_mask = (uint)(plane_mask >> (8 * sizeof(uint))); + tmp_mask = (uint)((plane_mask >> (8*sizeof(uint)-1)) >> 1); req_size += enc_u_sizew(tmp_mask); } else { tmp_mask = (uint)plane_mask; @@ -299,7 +299,7 @@ gx_dc_ht_colored_write( if (num_comps > 8 * sizeof(uint)) { tmp_mask = (uint)plane_mask; enc_u_putw(tmp_mask, pdata); - tmp_mask = (uint)(plane_mask >> (8 * sizeof(uint))); + tmp_mask = (uint)((plane_mask >> (8*sizeof(uint)-1))>>1); enc_u_putw(tmp_mask, pdata); } else { tmp_mask = (uint)plane_mask; @@ -428,7 +428,7 @@ gx_dc_ht_colored_read( enc_u_getw(tmp_mask, pdata); plane_mask = (gx_color_index)tmp_mask; enc_u_getw(tmp_mask, pdata); - plane_mask = (gx_color_index)tmp_mask << (8 * sizeof(uint)); + plane_mask = (((gx_color_index)tmp_mask)<<(8 * sizeof(uint)-1))<<1; } else { enc_u_getw(tmp_mask, pdata); plane_mask = (gx_color_index)tmp_mask; |