diff options
| author | Martin Braun <martin.braun@ettus.com> | 2017-01-17 10:00:47 -0800 | 
|---|---|---|
| committer | Martin Braun <martin.braun@ettus.com> | 2017-01-17 10:00:47 -0800 | 
| commit | 52ca2e0b8045c254c2be1911e77e8bd3d94ceeab (patch) | |
| tree | c7e1a93eeadd65bb13db1aa68974da495114f046 /host/tests | |
| parent | 46febf986ae5e89ebb0c350fd9aa42aaa6383997 (diff) | |
| parent | 95ff7e859d57829e428d41d7746e28c228b983ba (diff) | |
| download | uhd-52ca2e0b8045c254c2be1911e77e8bd3d94ceeab.tar.gz uhd-52ca2e0b8045c254c2be1911e77e8bd3d94ceeab.tar.bz2 uhd-52ca2e0b8045c254c2be1911e77e8bd3d94ceeab.zip  | |
Merge branch 'maint'
Diffstat (limited to 'host/tests')
| -rw-r--r-- | host/tests/convert_test.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/host/tests/convert_test.cpp b/host/tests/convert_test.cpp index b5f63bcbb..dd04dcafc 100644 --- a/host/tests/convert_test.cpp +++ b/host/tests/convert_test.cpp @@ -285,8 +285,8 @@ BOOST_AUTO_TEST_CASE(test_convert_types_fc32_to_sc16){      const size_t nsamps = 13;      std::vector<fc32_t> input(nsamps);      BOOST_FOREACH(fc32_t &in, input) in = fc32_t( -        (std::rand()/float(RAND_MAX/2)) - 1, -        (std::rand()/float(RAND_MAX/2)) - 1 +        (std::rand()/(RAND_MAX/2.0)) - 1, +        (std::rand()/(RAND_MAX/2.0)) - 1      );      std::vector<uint32_t> interm(nsamps);      std::vector<sc16_t> output(nsamps); @@ -581,7 +581,7 @@ static void test_convert_types_f32(  ){      //fill the input samples      std::vector<float> input(nsamps), output(nsamps); -    BOOST_FOREACH(float &in, input) in = float((std::rand()/float(RAND_MAX/2)) - 1); +    BOOST_FOREACH(float &in, input) in = float((float(std::rand())/float(RAND_MAX/2)) - 1);      //run the loopback and test      convert::id_type in_id = id;  | 
