isl_mat_has_linearly_independent_rows: use isl_bool_ok
authorTobias Grosser <tobias@grosser.es>
Fri, 21 Sep 2018 11:18:14 +0000 (21 13:18 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Fri, 21 Sep 2018 13:11:14 +0000 (21 15:11 +0200)
Signed-off-by: Tobias Grosser <tobias@grosser.es>
Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
isl_mat.c

index 3998ff0..38f3038 100644 (file)
--- a/isl_mat.c
+++ b/isl_mat.c
@@ -2099,5 +2099,5 @@ isl_bool isl_mat_has_linearly_independent_rows(__isl_keep isl_mat *mat1,
        isl_mat_free(mat);
        if (r < 0)
                return isl_bool_error;
-       return r == r1 + r2;
+       return isl_bool_ok(r == r1 + r2);
 }