gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master 70e7da4 2/7: function sanitycheck inside ui.c


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 70e7da4 2/7: function sanitycheck inside ui.c will fail always if matrixname is not NULL
Date: Sat, 23 Jul 2016 16:06:49 +0000 (UTC)

branch: master
commit 70e7da4d214696d0c827ce0733088791e96b0c77
Author: Vladimir Markelov <address@hidden>
Commit: Vladimir Markelov <address@hidden>

    function sanitycheck inside ui.c will fail always if matrixname is not NULL
---
 src/imgwarp/ui.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/imgwarp/ui.c b/src/imgwarp/ui.c
index 0a48af9..e6d5a18 100644
--- a/src/imgwarp/ui.c
+++ b/src/imgwarp/ui.c
@@ -330,7 +330,7 @@ sanitycheck(struct imgwarpparams *p)
   /* Check the size of the input matrix, note that it might only have
      the wrong numbers when it is read from a file. */
   if(p->up.matrixname
-     && (p->ms0!=2 || p->ms0!=3 || p->ms1!=2 || p->ms1!=3))
+     && (p->ms0!=2 && p->ms0!=3 || p->ms0!=p->ms1))
     error(EXIT_FAILURE, 0, "the given matrix in %s has %lu rows and %lu "
           "columns. Its size must be either 2x2 or 3x3", p->up.matrixname,
           p->ms0, p->ms1);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]