summaryrefslogtreecommitdiffstats
path: root/host/tests
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-02-09 17:59:48 -0800
committerJosh Blum <josh@joshknows.com>2012-02-09 17:59:48 -0800
commit115100034071b3b58de1fce7c795995f6ee615a1 (patch)
tree48909ad3435835d0ec70631faf252285368c8b41 /host/tests
parentb6da2fe9af84663fa4dda923833e2319433b6f20 (diff)
downloaduhd-115100034071b3b58de1fce7c795995f6ee615a1.tar.gz
uhd-115100034071b3b58de1fce7c795995f6ee615a1.tar.bz2
uhd-115100034071b3b58de1fce7c795995f6ee615a1.zip
uhd: various tweaks for compiler warns and valgrind
Diffstat (limited to 'host/tests')
-rw-r--r--host/tests/convert_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/tests/convert_test.cpp b/host/tests/convert_test.cpp
index d82014d3f..6b0ae53a9 100644
--- a/host/tests/convert_test.cpp
+++ b/host/tests/convert_test.cpp
@@ -124,8 +124,8 @@ static void test_convert_types_for_floats(
//fill the input samples
std::vector<data_type> input(nsamps), output(nsamps);
BOOST_FOREACH(data_type &in, input) in = data_type(
- ((std::rand()/value_type(RAND_MAX/2)) - 1)*extra_scale,
- ((std::rand()/value_type(RAND_MAX/2)) - 1)*extra_scale
+ ((std::rand()/value_type(RAND_MAX/2)) - 1)*float(extra_scale),
+ ((std::rand()/value_type(RAND_MAX/2)) - 1)*float(extra_scale)
);
//run the loopback and test