rev 392 - trunk

[email protected] Tue, 5 Apr 2005 17:29:37 -0700 (PDT)
Newsgroups gmane.comp.printing.ghostscript.jbig2dec.cvs
Message-ID <[email protected]>
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
=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_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
    =20
-    Copyright (C) 2001-2004 artofcode LLC.
+    Copyright (C) 2001-2005 artofcode LLC.
    =20
     This software is distributed under license and may not
     be copied, modified or distributed except as expressly
@@ -361,7 +361,7 @@
 		  } else {
 		      code =3D jbig2_arith_int_decode(IAAI, as, &REFAGGNINST);
 		  }
-		  if (code || REFAGGNINST <=3D 0)
+		  if (code || (int32_t)REFAGGNINST <=3D 0)
 		      jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number,
 			"invalid number of symbols or OOB in aggregate glyph");
=20