about summary refs log tree commit diff
path: root/other
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2020-11-19 15:24:48 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2020-11-19 15:24:48 +0000
commit7e211bcd9a3bc1a050439248c0a9b805fbb9f8af (patch)
tree010e01b7d88017f9674f932cf6d844beb37aaf61 /other
parentcd55cb529c43d0772fb0daf64af0bac465910260 (diff)
downloadnetpbm-mirror-7e211bcd9a3bc1a050439248c0a9b805fbb9f8af.tar.gz
netpbm-mirror-7e211bcd9a3bc1a050439248c0a9b805fbb9f8af.tar.xz
netpbm-mirror-7e211bcd9a3bc1a050439248c0a9b805fbb9f8af.zip
Fix maxvals are equal test
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3988 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'other')
-rw-r--r--other/pamarith.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/other/pamarith.c b/other/pamarith.c
index a4cb3502..301f76a0 100644
--- a/other/pamarith.c
+++ b/other/pamarith.c
@@ -374,7 +374,7 @@ computeOutputType(struct pam *       const outpamP,
             outpamP->maxval = maxMaxval(inpam, operandCt);
         break;
     case CATEGORY_BITSTRING:
-        if (maxvalsAreEqual(inpam, operandCt))
+        if (!maxvalsAreEqual(inpam, operandCt))
             pm_error("For a bit string operation, the maxvals of the "
                      "operand images must be the same.  Yours differ");