aboutsummaryrefslogtreecommitdiffstats
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
parentFixed B2x0 doc, man pages (diff)
downloaduhd-f80677f185f607f27878b5f3e3fb5602ba0d185c.tar.xz
uhd-f80677f185f607f27878b5f3e3fb5602ba0d185c.zip
usrp1: codec_ctrl: Fix compiler warning.
Use std::abs() instead of abs(). Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
-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;