diff options
author | eb <eb@221aa14e-8319-0410-a670-987f0aec2ac5> | 2008-07-09 16:02:37 +0000 |
---|---|---|
committer | eb <eb@221aa14e-8319-0410-a670-987f0aec2ac5> | 2008-07-09 16:02:37 +0000 |
commit | 7d8ec624a0b832f695d7f91eb7cf4f6359502142 (patch) | |
tree | 4f2c9aaec1b06fc67fef54d8df5bea261a0a86b2 /gnuradio-core/src/lib | |
parent | 1585a4d080803031ed5b034ffb93cf5f3de65a67 (diff) |
fix for ticket:250
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8835 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src/lib')
-rw-r--r-- | gnuradio-core/src/lib/runtime/gr_sync_interpolator.cc | 4 | ||||
-rw-r--r-- | gnuradio-core/src/lib/runtime/gr_sync_interpolator.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gnuradio-core/src/lib/runtime/gr_sync_interpolator.cc b/gnuradio-core/src/lib/runtime/gr_sync_interpolator.cc index f61e59ea12..d130a5be14 100644 --- a/gnuradio-core/src/lib/runtime/gr_sync_interpolator.cc +++ b/gnuradio-core/src/lib/runtime/gr_sync_interpolator.cc @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2004 Free Software Foundation, Inc. + * Copyright 2004,2008 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -50,7 +50,7 @@ gr_sync_interpolator::fixed_rate_noutput_to_ninput(int noutput_items) } int -gr_sync_interpolator::fixed_rate_ninput_to_noutout(int ninput_items) +gr_sync_interpolator::fixed_rate_ninput_to_noutput(int ninput_items) { return std::max(0, ninput_items - (int)history() + 1) * interpolation(); } diff --git a/gnuradio-core/src/lib/runtime/gr_sync_interpolator.h b/gnuradio-core/src/lib/runtime/gr_sync_interpolator.h index b5dfed70c3..87e718cca9 100644 --- a/gnuradio-core/src/lib/runtime/gr_sync_interpolator.h +++ b/gnuradio-core/src/lib/runtime/gr_sync_interpolator.h @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2004 Free Software Foundation, Inc. + * Copyright 2004,2008 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -60,7 +60,7 @@ class gr_sync_interpolator : public gr_sync_block // derived classes should override work - int fixed_rate_ninput_to_noutout(int ninput); + int fixed_rate_ninput_to_noutput(int ninput); int fixed_rate_noutput_to_ninput(int noutput); }; |