From: eb Date: Wed, 9 Jul 2008 16:02:37 +0000 (+0000) Subject: fix for ticket:250 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=7d8ec624a0b832f695d7f91eb7cf4f6359502142;p=debian%2Fgnuradio fix for ticket:250 git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8835 221aa14e-8319-0410-a670-987f0aec2ac5 --- diff --git a/gnuradio-core/src/lib/runtime/gr_sync_interpolator.cc b/gnuradio-core/src/lib/runtime/gr_sync_interpolator.cc index f61e59ea..d130a5be 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 b5dfed70..87e718cc 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); };