ref: 2561fd5c9ed06af167a245e2a09732a68655c8fb
parent: cf7b160a37331362d7bcff571e13e57d20193377
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Tue Apr 5 20:29:36 EDT 2005
Add a cast to in checking a range against an unsigned value. git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@392 ded80894-8fb9-0310-811b-c03f3676ab4d
--- a/jbig2_symbol_dict.c
+++ b/jbig2_symbol_dict.c
@@ -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");