[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);
- [Commit-gnuradio] [gnuradio] branch maint updated (492bce0 -> 393624c), git, 2016/01/27
- [Commit-gnuradio] [gnuradio] 09/09: Merge remote-tracking branch 'tom/issue768' into maint, git, 2016/01/27
- [Commit-gnuradio] [gnuradio] 07/09: Merge remote-tracking branch 'tom/issue882' into maint, git, 2016/01/27
- [Commit-gnuradio] [gnuradio] 01/09: filter: issue #882: making sure to clean up memory in PFB decimator., git, 2016/01/27
- [Commit-gnuradio] [gnuradio] 04/09: runtime: addresses issue 768., git, 2016/01/27
- [Commit-gnuradio] [gnuradio] 02/09: cmake: issue #879. Fixed quotation problem., git, 2016/01/27
- [Commit-gnuradio] [gnuradio] 08/09: Merge remote-tracking branch 'tom/issue876' into maint, git, 2016/01/27
- [Commit-gnuradio] [gnuradio] 06/09: runtime: issue 883: fixes calculation of alignment in items.,
git <=
- [Commit-gnuradio] [gnuradio] 03/09: digital: addresses issue #876., git, 2016/01/27
- [Commit-gnuradio] [gnuradio] 05/09: Merge remote-tracking branch 'tom/issue879' into maint, git, 2016/01/27