commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 05/28: basic: whoops, wrong operator


From: git
Subject: [Commit-gnuradio] [gnuradio] 05/28: basic: whoops, wrong operator
Date: Mon, 15 Aug 2016 00:47:04 +0000 (UTC)

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

nwest pushed a commit to annotated tag gr_basic_work
in repository gnuradio.

commit f51bd671d1b9fcfdc93f38b48eb87ed7896f314d
Author: Josh Blum <address@hidden>
Date:   Tue Nov 8 17:17:25 2011 -0800

    basic: whoops, wrong operator
---
 gr-basic/lib/gr_basic_divide.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gr-basic/lib/gr_basic_divide.cc b/gr-basic/lib/gr_basic_divide.cc
index a4eca4a..19f9ec2 100644
--- a/gr-basic/lib/gr_basic_divide.cc
+++ b/gr-basic/lib/gr_basic_divide.cc
@@ -54,9 +54,9 @@ public:
         for (size_t n = 1; n < input_items.size(); n++){
             const type *in = reinterpret_cast<const type *>(input_items[n]);
             for (size_t i = 0; i < n_nums; i++){
-                out[i] = in0[i] * in[i];
+                out[i] = in0[i] / in[i];
             }
-            in0 = out; //for next input, we do output *= input
+            in0 = out; //for next input, we do output /= input
         }
 
         return noutput_items;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]