[arrayfire] 290/408: Fixing the compile error on windows

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:12:16 UTC 2015


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

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

commit 08b6ecf928881dc0e4f3235d68766ec9eec5769f
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date:   Wed Aug 19 13:52:13 2015 -0400

    Fixing the compile error on windows
---
 test/wrap.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/wrap.cpp b/test/wrap.cpp
index 8d26a5a..0a9cdc2 100644
--- a/test/wrap.cpp
+++ b/test/wrap.cpp
@@ -131,7 +131,7 @@ void wrapTest(const dim_t ix, const dim_t iy,
                 T rval = rptr[y * ix + x];
                 int factor = h_factor[y * ix + x];
 
-                if (abs(ival) == 0) continue;
+                if (get_val(ival) == 0) continue;
 
                 ASSERT_NEAR(get_val<T>(ival * factor), get_val<T>(rval), 1E-5)
                     << "at " << x << "," << y <<  " for cond  == " << cond << std::endl;

-- 
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