diff options
-rw-r--r-- | other/pamarith.c | 2 |
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"); |