diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2013-04-06 21:52:20 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2013-04-06 21:52:20 +0000 |
commit | 04801c35a7bd8c802028a72d8355f027b50cd29f (patch) | |
tree | a366acdb09055de6aa402d15df5eb4f9a5a8d84d /analyzer/pnmpsnr.c | |
parent | 200553b6135e1ba6a4b6585e3d07d934ba6b8ceb (diff) | |
download | netpbm-mirror-04801c35a7bd8c802028a72d8355f027b50cd29f.tar.gz netpbm-mirror-04801c35a7bd8c802028a72d8355f027b50cd29f.tar.xz netpbm-mirror-04801c35a7bd8c802028a72d8355f027b50cd29f.zip |
Release 10.62.01
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@1872 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'analyzer/pnmpsnr.c')
-rw-r--r-- | analyzer/pnmpsnr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/analyzer/pnmpsnr.c b/analyzer/pnmpsnr.c index ce2708b5..b04316cf 100644 --- a/analyzer/pnmpsnr.c +++ b/analyzer/pnmpsnr.c @@ -55,14 +55,14 @@ validateInput(struct pam const pam1, "maxval of one of them.", (unsigned int) pam1.maxval, (unsigned int) pam2.maxval); - if (streq(pam1.tuple_type, pam2.tuple_type)) + if (!streq(pam1.tuple_type, pam2.tuple_type)) pm_error("images are not of the same type. The tuple types are " "'%s' and '%s', respectively.", pam1.tuple_type, pam2.tuple_type); - if (streq(pam1.tuple_type, PAM_PBM_TUPLETYPE) && - streq(pam1.tuple_type, PAM_PGM_TUPLETYPE) && - streq(pam1.tuple_type, PAM_PPM_TUPLETYPE)) + if (!streq(pam1.tuple_type, PAM_PBM_TUPLETYPE) && + !streq(pam1.tuple_type, PAM_PGM_TUPLETYPE) && + !streq(pam1.tuple_type, PAM_PPM_TUPLETYPE)) pm_error("Images are not of a PNM type. Tuple type is '%s'", pam1.tuple_type); } |