From 2d3f3c6c0fde4eb8d4f9b19a1e15f253d361c38d Mon Sep 17 00:00:00 2001 From: Nicholas Corgan Date: Mon, 22 Dec 2014 09:21:58 -0800 Subject: math: fixed MSVC error regarding ambiguous std::log call --- host/include/uhd/utils/math.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host') 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)); } -- cgit v1.2.3