[jbig2-cvs] rev 392 - trunk
giles at ghostscript.com
giles at ghostscript.com
Tue Apr 5 17:29:37 PDT 2005
Author: giles
Date: 2005-04-05 17:29:36 -0700 (Tue, 05 Apr 2005)
New Revision: 392
Modified:
trunk/jbig2_symbol_dict.c
Log:
Add a cast to in checking a range against an unsigned value.
Modified: trunk/jbig2_symbol_dict.c
===================================================================
--- trunk/jbig2_symbol_dict.c 2005-04-05 23:40:12 UTC (rev 391)
+++ trunk/jbig2_symbol_dict.c 2005-04-06 00:29:36 UTC (rev 392)
@@ -1,7 +1,7 @@
/*
jbig2dec
- Copyright (C) 2001-2004 artofcode LLC.
+ Copyright (C) 2001-2005 artofcode LLC.
This software is distributed under license and may not
be copied, modified or distributed except as expressly
@@ -361,7 +361,7 @@
} else {
code = jbig2_arith_int_decode(IAAI, as, &REFAGGNINST);
}
- if (code || REFAGGNINST <= 0)
+ if (code || (int32_t)REFAGGNINST <= 0)
jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number,
"invalid number of symbols or OOB in aggregate glyph");
More information about the jbig2-cvs
mailing list