summaryrefslogtreecommitdiff
path: root/jbig2dec/jbig2_arith.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2019-09-29 12:09:40 +0200
committerSebastian Rasmussen <sebras@gmail.com>2020-03-20 17:56:08 +0800
commit5947fb2f1c022982e82406639517ebacae8d5cf6 (patch)
treeed3b3b258e176c22c0f35cfdadb5f91b9e60afc8 /jbig2dec/jbig2_arith.c
parent9394be6a45aea026f61900e1cb661a30db192c15 (diff)
downloadghostpdl-5947fb2f1c022982e82406639517ebacae8d5cf6.tar.gz
jbig2dec: Address all signedness comparison issues.
Diffstat (limited to 'jbig2dec/jbig2_arith.c')
-rw-r--r--jbig2dec/jbig2_arith.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/jbig2dec/jbig2_arith.c b/jbig2dec/jbig2_arith.c
index 6ce00e693..116c55c3d 100644
--- a/jbig2dec/jbig2_arith.c
+++ b/jbig2dec/jbig2_arith.c
@@ -31,7 +31,7 @@
struct _Jbig2ArithState {
uint32_t C;
- int A;
+ uint32_t A;
int CT;
@@ -228,7 +228,7 @@ jbig2_arith_new(Jbig2Ctx *ctx, Jbig2WordStream *ws)
/* could put bit fields in to minimize memory usage */
typedef struct {
- unsigned short Qe;
+ uint16_t Qe;
byte mps_xor; /* mps_xor = index ^ NMPS */
byte lps_xor; /* lps_xor = index ^ NLPS ^ (SWITCH << 7) */
} Jbig2ArithQe;