From 94a043ab5b1f4e719ba841fc94de47c785a17d07 Mon Sep 17 00:00:00 2001 From: Andrej Rode Date: Fri, 16 Dec 2016 13:58:52 -0800 Subject: tests: fix coverity reports --- host/tests/convert_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/tests') 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 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; -- cgit v1.2.3