rev 425 - trunk
[email protected] Tue, 16 Aug 2005 13:20:09 -0700 (PDT)
| Newsgroups | gmane.comp.printing.ghostscript.jbig2dec.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: ray Date: 2005-08-16 13:20:08 -0700 (Tue, 16 Aug 2005) New Revision: 425 Modified: trunk/jbig2_huffman.c Log: Fix for shift right 32 bits of unsigned int being treated as shift right = 0. Modified: trunk/jbig2_huffman.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/jbig2_huffman.c 2005-08-15 21:14:45 UTC (rev 424) +++ trunk/jbig2_huffman.c 2005-08-16 20:20:08 UTC (rev 425) @@ -148,7 +148,8 @@ } hs->this_word =3D ws->get_next_word (ws, hs->offset); hs->next_word =3D ws->get_next_word (ws, hs->offset + 4); - hs->this_word =3D (hs->this_word << hs->offset_bits) | + if (hs->offset_bits > 0) + hs->this_word =3D (hs->this_word << hs->offset_bits) | (hs->next_word >> (32 - hs->offset_bits)); } =20