rev 278 - trunk
[email protected] Wed, 1 Oct 2003 12:51:06 -0700 (PDT)
| Newsgroups | gmane.comp.printing.ghostscript.jbig2dec.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: giles
Date: 2003-10-01 12:30:10 -0700 (Wed, 01 Oct 2003)
New Revision: 278
Modified:
trunk/jbig2_text.c
Log:
Remove an unnecessary check for the symbol id < 0 (it's unsigned) and
correct a type mismatch. Both of these may have been causing warnings on
MSVC. Thanks to Igor Melichev for tracking down the problem.
Modified: trunk/jbig2_text.c
===================================================================
--- trunk/jbig2_text.c 2003-10-01 17:05:28 UTC (rev 277)
+++ trunk/jbig2_text.c 2003-10-01 19:30:10 UTC (rev 278)
@@ -211,14 +211,14 @@
} else {
code = jbig2_arith_iaid_decode(IAID, as, &ID);
}
- if (ID < 0 || ID >= max_id) {
+ if (ID >= max_id) {
return jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number,
"symbol id out of range! (%d/%d)", ID, max_id);
}
/* (3c.v) look up the symbol bitmap IB */
{
- int id = ID;
+ uint32_t id = ID;
index = 0;
while (id >= dicts[index]->n_symbols)