[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 02/08: filter: use correct function for arg
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 02/08: filter: use correct function for argument type; where's std::abs when you need it to auto-type? |
Date: |
Tue, 31 Mar 2015 20:37:39 +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 3c3988795cd894ee26132deb0f478e78d05575e5
Author: Michael Dickens <address@hidden>
Date: Wed Mar 18 12:49:48 2015 -0400
filter: use correct function for argument type; where's std::abs when you
need it to auto-type?
---
gr-filter/lib/pfb_channelizer_ccf_impl.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gr-filter/lib/pfb_channelizer_ccf_impl.cc
b/gr-filter/lib/pfb_channelizer_ccf_impl.cc
index 04f0b96..62262a2 100644
--- a/gr-filter/lib/pfb_channelizer_ccf_impl.cc
+++ b/gr-filter/lib/pfb_channelizer_ccf_impl.cc
@@ -61,7 +61,7 @@ namespace gr {
// requirement within a few significant figures.
const double srate = nfilts / oversample_rate;
const double rsrate = round(srate);
- if(fabsf(srate - rsrate) > 0.00001)
+ if(fabs(srate - rsrate) > 0.00001)
throw std::invalid_argument("pfb_channelizer: oversample rate must be
N/i for i in [1, N]");
set_relative_rate(oversample_rate);
- [Commit-gnuradio] [gnuradio] branch maint updated (48b29c4 -> d817c5f), git, 2015/03/31
- [Commit-gnuradio] [gnuradio] 01/08: qtgui: clarify return value, to make some compilers happier., git, 2015/03/31
- [Commit-gnuradio] [gnuradio] 05/08: audio osx: use memcpy instead of bcopy, to be consistent with the rest of GNU Radio., git, 2015/03/31
- [Commit-gnuradio] [gnuradio] 02/08: filter: use correct function for argument type; where's std::abs when you need it to auto-type?,
git <=
- [Commit-gnuradio] [gnuradio] 08/08: logger: fix macro name in comments., git, 2015/03/31
- [Commit-gnuradio] [gnuradio] 03/08: blocks: fixmsg handler pmt length / size comparison to be valid., git, 2015/03/31
- [Commit-gnuradio] [gnuradio] 06/08: blocks: use explicit type conversion to compare the same types., git, 2015/03/31
- [Commit-gnuradio] [gnuradio] 07/08: pager & digital: add explicit type to constants that could be interpreted in other ways, to make various compilers happy., git, 2015/03/31
- [Commit-gnuradio] [gnuradio] 04/08: audio osx: change copying of a UInt32 type into a string by using memcpy instead of a direct pointer manipulation, to make some newer compilers happy., git, 2015/03/31