diff options
author | Tom Tsou <tom.tsou@ettus.com> | 2017-03-22 13:51:33 -0700 |
---|---|---|
committer | Tom Tsou <tom@tsou.cc> | 2017-03-31 21:40:23 +0000 |
commit | 9d53ecf666b95948802384133e696d536deaf3bc (patch) | |
tree | 28467c2e696d89946a8f0fdb16b0f2b582ecaa53 /Transceiver52M/Resampler.cpp | |
parent | e0c12189d455eb0d17299e4504749ce36629e18b (diff) |
Resampler: Fix initialization return checking
Greater-than comparison was used on boolean type.
Change-Id: Ia3b71b3a06b34a6fd781bf197ecf9d5cc1711d13
Diffstat (limited to 'Transceiver52M/Resampler.cpp')
-rw-r--r-- | Transceiver52M/Resampler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Transceiver52M/Resampler.cpp b/Transceiver52M/Resampler.cpp index 8a73b79..72b11a9 100644 --- a/Transceiver52M/Resampler.cpp +++ b/Transceiver52M/Resampler.cpp @@ -191,7 +191,7 @@ int Resampler::rotate(const float *in, size_t in_len, float *out, size_t out_len bool Resampler::init(float bw) { /* Filterbank filter internals */ - if (initFilters(bw) < 0) + if (!initFilters(bw)) return false; /* Precompute filterbank paths */ |