[arrayfire] 14/34: type cast fix in histogram unit test

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun Sep 27 14:46:02 UTC 2015


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

ghisvail-guest pushed a commit to branch dfsg-clean
in repository arrayfire.

commit 392d26c1f180dd0de0282359b18dc31c80173f2a
Author: pradeep <pradeep at arrayfire.com>
Date:   Mon Sep 21 21:21:13 2015 -0400

    type cast fix in histogram unit test
---
 test/histogram.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/histogram.cpp b/test/histogram.cpp
index 446b7da..a9a820f 100644
--- a/test/histogram.cpp
+++ b/test/histogram.cpp
@@ -260,8 +260,8 @@ TEST(histogram, IndexedArray)
 {
     using namespace af;
 
-    const long int LEN = 32;
-    array A = range(LEN, 2);
+    const dim_t LEN = 32;
+    array A = range(LEN, (dim_t)2);
     for (int i=16; i<28; ++i) {
         A(seq(i, i+3), span) = i/4 - 1;
     }

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