aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMoritz Fischer <moritz.fischer@ettus.com>2015-04-10 17:30:26 -0700
committerMartin Braun <martin.braun@ettus.com>2015-04-10 17:56:41 -0700
commitf80677f185f607f27878b5f3e3fb5602ba0d185c (patch)
tree8bff3a8d0fefcdbaab9a3eaccf32cf9d5b59ccd7 /host
parenta0d3628a1d954afaa00ebae1bf61ca3bf4fe86d6 (diff)
downloaduhd-f80677f185f607f27878b5f3e3fb5602ba0d185c.tar.gz
uhd-f80677f185f607f27878b5f3e3fb5602ba0d185c.tar.bz2
uhd-f80677f185f607f27878b5f3e3fb5602ba0d185c.zip
usrp1: codec_ctrl: Fix compiler warning.
Use std::abs() instead of abs(). Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Diffstat (limited to 'host')
-rw-r--r--host/lib/usrp/usrp1/codec_ctrl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp1/codec_ctrl.cpp b/host/lib/usrp/usrp1/codec_ctrl.cpp
index 2e922a3e2..8ba7b54ca 100644
--- a/host/lib/usrp/usrp1/codec_ctrl.cpp
+++ b/host/lib/usrp/usrp1/codec_ctrl.cpp
@@ -357,7 +357,7 @@ double usrp1_codec_ctrl_impl::fine_tune(double codec_rate, double target_freq)
static const double scale_factor = std::pow(2.0, 24);
boost::uint32_t freq_word = boost::uint32_t(
- boost::math::round(abs((target_freq / codec_rate) * scale_factor)));
+ boost::math::round(std::abs((target_freq / codec_rate) * scale_factor)));
double actual_freq = freq_word * codec_rate / scale_factor;