[arrayfire] 120/284: Simplified test for perspective transform in API

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun Feb 7 18:59:25 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/experimental
in repository arrayfire.

commit bdc31d04b810958cf714ae6fefd21ac76edaa861
Author: Peter Andreas Entschev <peter at arrayfire.com>
Date:   Tue Dec 29 15:08:44 2015 -0500

    Simplified test for perspective transform in API
---
 src/api/c/transform.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api/c/transform.cpp b/src/api/c/transform.cpp
index ffd86dc..785a054 100644
--- a/src/api/c/transform.cpp
+++ b/src/api/c/transform.cpp
@@ -45,7 +45,7 @@ af_err af_transform(af_array *out, const af_array in, const af_array tf,
         DIM_ASSERT(1, idims.elements() > 0);
         DIM_ASSERT(1, (idims.ndims() == 2 || idims.ndims() == 3));
 
-        const bool perspective = (tdims[1] == 3) ? true : false;
+        const bool perspective = (tdims[1] == 3);
 
         dim_t o0 = odim0, o1 = odim1;
         dim_t o2 = idims[2] * tdims[2];

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list