[arrayfire] 388/408: BUG: Fixing seq when passing af::end to af::seq

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:12:36 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 eb9fde9179306e031cbbe82e9d9a1d663b3de99c
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date:   Fri Sep 11 16:03:28 2015 -0400

    BUG: Fixing seq when passing af::end to af::seq
---
 src/api/cpp/seq.cpp | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/api/cpp/seq.cpp b/src/api/cpp/seq.cpp
index 388fa41..a9d5df6 100644
--- a/src/api/cpp/seq.cpp
+++ b/src/api/cpp/seq.cpp
@@ -65,10 +65,6 @@ seq& seq::operator=(const af_seq& s_)
 
 seq::seq(double begin, double end, double step): m_gfor(false)
 {
-    if(begin == -1 && end <= -1) {
-        step = 0;           // end
-    }
-
     if (step == 0) {
         if (begin != end)   // Span
             AF_THROW_MSG("Invalid step size", AF_ERR_ARG);

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