Blame SOURCES/netpbm-compare-same-images.patch
|
|
1ab173 |
diff --git a/analyzer/pnmpsnr.c b/analyzer/pnmpsnr.c
|
|
|
1ab173 |
index ce2708b..b04316c 100644
|
|
|
1ab173 |
--- a/analyzer/pnmpsnr.c
|
|
|
1ab173 |
+++ b/analyzer/pnmpsnr.c
|
|
|
1ab173 |
@@ -55,14 +55,14 @@ validateInput(struct pam const pam1,
|
|
|
1ab173 |
"maxval of one of them.",
|
|
|
1ab173 |
(unsigned int) pam1.maxval, (unsigned int) pam2.maxval);
|
|
|
1ab173 |
|
|
|
1ab173 |
- if (streq(pam1.tuple_type, pam2.tuple_type))
|
|
|
1ab173 |
+ if (!streq(pam1.tuple_type, pam2.tuple_type))
|
|
|
1ab173 |
pm_error("images are not of the same type. The tuple types are "
|
|
|
1ab173 |
"'%s' and '%s', respectively.",
|
|
|
1ab173 |
pam1.tuple_type, pam2.tuple_type);
|
|
|
1ab173 |
|
|
|
1ab173 |
- if (streq(pam1.tuple_type, PAM_PBM_TUPLETYPE) &&
|
|
|
1ab173 |
- streq(pam1.tuple_type, PAM_PGM_TUPLETYPE) &&
|
|
|
1ab173 |
- streq(pam1.tuple_type, PAM_PPM_TUPLETYPE))
|
|
|
1ab173 |
+ if (!streq(pam1.tuple_type, PAM_PBM_TUPLETYPE) &&
|
|
|
1ab173 |
+ !streq(pam1.tuple_type, PAM_PGM_TUPLETYPE) &&
|
|
|
1ab173 |
+ !streq(pam1.tuple_type, PAM_PPM_TUPLETYPE))
|
|
|
1ab173 |
pm_error("Images are not of a PNM type. Tuple type is '%s'",
|
|
|
1ab173 |
pam1.tuple_type);
|
|
|
1ab173 |
}
|