From 7e211bcd9a3bc1a050439248c0a9b805fbb9f8af Mon Sep 17 00:00:00 2001 From: giraffedata Date: Thu, 19 Nov 2020 15:24:48 +0000 Subject: Fix maxvals are equal test git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3988 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- other/pamarith.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit 1.4.1