diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-03-15 00:51:52 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-03-15 00:51:52 +0000 |
commit | baa55bdc036c8d5f626d6908d3f5d5f94ee48dcc (patch) | |
tree | d51b63488f6865443d888254f911ead700953a87 | |
parent | 4c2899bf96b9dcfcbdd5373cfa7aca0a09ea30a1 (diff) | |
download | netpbm-mirror-baa55bdc036c8d5f626d6908d3f5d5f94ee48dcc.tar.gz netpbm-mirror-baa55bdc036c8d5f626d6908d3f5d5f94ee48dcc.tar.xz netpbm-mirror-baa55bdc036c8d5f626d6908d3f5d5f94ee48dcc.zip |
Avoid compiler warning about possibly misplaced parentheses
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3756 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | converter/other/jbig/libjbig/jbig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/converter/other/jbig/libjbig/jbig.c b/converter/other/jbig/libjbig/jbig.c index 8c2f1145..cf24a93b 100644 --- a/converter/other/jbig/libjbig/jbig.c +++ b/converter/other/jbig/libjbig/jbig.c @@ -1106,7 +1106,7 @@ static void encode_sde(struct jbg_enc_state *s, if (!at_determined && j >= s->mx && j < hx-2) { p = (line_h1 & 0x100) != 0; /* current pixel value */ c[0] += ((line_h2 & 0x4000) != 0) == p; /* default position */ - assert(!(((line_h2 >> 6) ^ line_h1) & 0x100) == + assert((!(((line_h2 >> 6) ^ line_h1) & 0x100)) == (((line_h2 & 0x4000) != 0) == p)); for (t = 5; t <= s->mx && t <= j; t++) { o = (j - t) - (j & ~7L); @@ -1151,7 +1151,7 @@ static void encode_sde(struct jbg_enc_state *s, if (!at_determined && j >= s->mx && j < hx-2) { p = (line_h1 & 0x100) != 0; /* current pixel value */ c[0] += ((line_h2 & 0x4000) != 0) == p; /* default position */ - assert(!(((line_h2 >> 6) ^ line_h1) & 0x100) == + assert((!(((line_h2 >> 6) ^ line_h1) & 0x100)) == (((line_h2 & 0x4000) != 0) == p)); for (t = 3; t <= s->mx && t <= j; t++) { o = (j - t) - (j & ~7L); |