summaryrefslogtreecommitdiffstats
path: root/host/test
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-08-11 12:28:19 -0700
committerJosh Blum <josh@joshknows.com>2010-08-11 12:28:19 -0700
commit457ee4f8bd5f9ade6d4fbcbafb8b0adbe769ae3c (patch)
tree52c48abdeb2014fe6b7773b5fb6be22b6823d572 /host/test
parent9e87ebda07dda14e5b0ab4c64b6adc9800358baa (diff)
parent54048fd9b227633c724edd975347c81152ab37b2 (diff)
downloaduhd-457ee4f8bd5f9ade6d4fbcbafb8b0adbe769ae3c.tar.gz
uhd-457ee4f8bd5f9ade6d4fbcbafb8b0adbe769ae3c.tar.bz2
uhd-457ee4f8bd5f9ade6d4fbcbafb8b0adbe769ae3c.zip
Merge branch 'subdev_spec' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e
Diffstat (limited to 'host/test')
-rw-r--r--host/test/gain_group_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/test/gain_group_test.cpp b/host/test/gain_group_test.cpp
index 6a6af8eb2..761372e5a 100644
--- a/host/test/gain_group_test.cpp
+++ b/host/test/gain_group_test.cpp
@@ -52,7 +52,7 @@ class gain_element2{
public:
gain_range_t get_range(void){
- return gain_range_t(-20, 10, 0.1);
+ return gain_range_t(-20, 10, float(0.1));
}
float get_value(void){
@@ -94,7 +94,7 @@ static gain_group::sptr get_gain_group(size_t pri1 = 0, size_t pri2 = 0){
/***********************************************************************
* Test cases
**********************************************************************/
-static const double tolerance = 0.001;
+static const float tolerance = float(0.001);
BOOST_AUTO_TEST_CASE(test_gain_group_overall){
gain_group::sptr gg = get_gain_group();