diff options
author | Andrej Rode <andrej.rode@ettus.com> | 2016-12-16 13:58:52 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-01-12 15:15:37 -0800 |
commit | 94a043ab5b1f4e719ba841fc94de47c785a17d07 (patch) | |
tree | 16e850e78802a6c9aa2bcc4f37e1ed19818eb426 /host/tests/convert_test.cpp | |
parent | 74c60887bda3763a3e1c3a619068721c2b027848 (diff) | |
download | uhd-94a043ab5b1f4e719ba841fc94de47c785a17d07.tar.gz uhd-94a043ab5b1f4e719ba841fc94de47c785a17d07.tar.bz2 uhd-94a043ab5b1f4e719ba841fc94de47c785a17d07.zip |
tests: fix coverity reports
Diffstat (limited to 'host/tests/convert_test.cpp')
-rw-r--r-- | host/tests/convert_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/tests/convert_test.cpp b/host/tests/convert_test.cpp index b5f63bcbb..6c1b94c45 100644 --- a/host/tests/convert_test.cpp +++ b/host/tests/convert_test.cpp @@ -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; |