aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorNicholas Corgan <nick.corgan@ettus.com>2014-12-22 09:21:58 -0800
committerMartin Braun <martin.braun@ettus.com>2015-01-07 17:15:49 +0100
commit2d3f3c6c0fde4eb8d4f9b19a1e15f253d361c38d (patch)
treef076cb36c0d14fff2116934e8fe0985ae4dc47f9 /host/include
parentb9b4b942b4715793f751eb2c1ece81bcd924fd89 (diff)
downloaduhd-2d3f3c6c0fde4eb8d4f9b19a1e15f253d361c38d.tar.gz
uhd-2d3f3c6c0fde4eb8d4f9b19a1e15f253d361c38d.tar.bz2
uhd-2d3f3c6c0fde4eb8d4f9b19a1e15f253d361c38d.zip
math: fixed MSVC error regarding ambiguous std::log call
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/utils/math.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/include/uhd/utils/math.hpp b/host/include/uhd/utils/math.hpp
index a41a35d67..275a94f72 100644
--- a/host/include/uhd/utils/math.hpp
+++ b/host/include/uhd/utils/math.hpp
@@ -243,7 +243,7 @@ namespace fp_compare {
{
// C++11 defines std::log2(), when that's universally supported
// we can switch over.
- return std::log(x) / std::log(2);
+ return std::log(x) / std::log(float_t(2));
}