commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 06/09: runtime: issue 883: fixes calculatio


From: git
Subject: [Commit-gnuradio] [gnuradio] 06/09: runtime: issue 883: fixes calculation of alignment in items.
Date: Wed, 27 Jan 2016 18:20:24 +0000 (UTC)

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

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit 65d619d8c03c73aeeb7e9e18d5d65059710ce478
Author: Tom Rondeau <address@hidden>
Date:   Wed Jan 27 09:17:12 2016 -0800

    runtime: issue 883: fixes calculation of alignment in items.
---
 gnuradio-runtime/lib/flat_flowgraph.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnuradio-runtime/lib/flat_flowgraph.cc 
b/gnuradio-runtime/lib/flat_flowgraph.cc
index 4799433..81c1184 100644
--- a/gnuradio-runtime/lib/flat_flowgraph.cc
+++ b/gnuradio-runtime/lib/flat_flowgraph.cc
@@ -324,7 +324,7 @@ namespace gr {
       //std::cerr << "reader: " << r << "  alignment: " << ri << std::endl;
       if(ri != 0) {
         size_t itemsize = block->detail()->input(i)->get_sizeof_item();
-        block->detail()->input(i)->update_read_pointer(alignment-ri/itemsize);
+        
block->detail()->input(i)->update_read_pointer((alignment-ri)/itemsize);
       }
       block->set_unaligned(0);
       block->set_is_unaligned(false);
@@ -336,7 +336,7 @@ namespace gr {
       //std::cerr << "writer: " << w << "  alignment: " << wi << std::endl;
       if(wi != 0) {
         size_t itemsize = block->detail()->output(i)->get_sizeof_item();
-        
block->detail()->output(i)->update_write_pointer(alignment-wi/itemsize);
+        
block->detail()->output(i)->update_write_pointer((alignment-wi)/itemsize);
       }
       block->set_unaligned(0);
       block->set_is_unaligned(false);



reply via email to

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