[arrayfire] 40/84: bug fix in plot3 graphics example

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Jan 4 23:22:21 UTC 2016


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

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

commit 36ed9a49fb6bde980f86fd6ff61b78b631b1a06d
Author: pradeep <pradeep at arrayfire.com>
Date:   Thu Dec 17 15:33:56 2015 -0500

    bug fix in plot3 graphics example
---
 examples/graphics/plot3.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/graphics/plot3.cpp b/examples/graphics/plot3.cpp
index 3893f01..d9e5856 100644
--- a/examples/graphics/plot3.cpp
+++ b/examples/graphics/plot3.cpp
@@ -29,8 +29,8 @@ int main(int argc, char *argv[])
         do{
             array Y = sin((Z*t) + t) / Z;
             array X = cos((Z*t) + t) / Z;
-            X = max(min(X, 1), -1);
-            Y = max(min(Y, 1), -1);
+            X = max(min(X, 1.0), -1.0);
+            Y = max(min(Y, 1.0), -1.0);
 
             array Pts = join(1, X, Y, Z);
             //Pts can be passed in as a matrix in the form n x 3, 3 x n

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