jbig2dec
Ralph Giles <[email protected]> Tue, 06 Aug 2002 04:15:31 -0700
| Newsgroups | gmane.comp.printing.ghostscript.jbig2dec.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/jbig2dec/jbig2dec
In directory usw-pr-cvs1:/tmp/cvs-serv26570
Modified Files:
jbig2_arith.c
Log Message:
Add some casts to avoid MSVC warnings where it improves readability.
Index: jbig2_arith.c
===================================================================
RCS file: /cvsroot/jbig2dec/jbig2dec/jbig2_arith.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- jbig2_arith.c 20 Jul 2002 17:23:15 -0000 1.11
+++ jbig2_arith.c 6 Aug 2002 11:15:29 -0000 1.12
@@ -64,7 +64,7 @@
/* invariant: as->next_word_bytes > 0 */
/* Figure G.3 */
- B = (as->next_word >> 24) & 0xFF;
+ B = (byte)((as->next_word >> 24) & 0xFF);
if (B == 0xFF)
{
byte B1;
@@ -73,7 +73,7 @@
Jbig2WordStream *ws = as->ws;
as->next_word = ws->get_next_word (ws, as->offset);
as->offset += 4;
- B1 = (as->next_word >> 24) & 0xFF;
+ B1 = (byte)((as->next_word >> 24) & 0xFF);
if (B1 > 0x8F)
{
#ifdef DEBUG
@@ -102,7 +102,7 @@
}
else
{
- B1 = (as->next_word >> 16) & 0xFF;
+ B1 = (byte)((as->next_word >> 16) & 0xFF);
if (B1 > 0x8F)
{
#ifdef DEBUG
@@ -146,7 +146,7 @@
as->offset += 4;
as->next_word_bytes = 4;
}
- B = (as->next_word >> 24) & 0xFF;
+ B = (byte)((as->next_word >> 24) & 0xFF);
#ifdef SOFTWARE_CONVENTION
as->C += 0xFF00 - (B << 8);
#else