aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests/time_spec_test.cpp
diff options
context:
space:
mode:
authorMichael Dickens <michael.dickens@ettus.com>2015-03-07 11:12:58 -0500
committerMartin Braun <martin.braun@ettus.com>2015-03-11 15:33:17 -0700
commita7049e4ff79cdc205db76bf7270219f254073961 (patch)
treed8dd37ecfaa3719a82c5aa3ce56f0d04faae01ef /host/tests/time_spec_test.cpp
parenta4eee83b82a5f57b22c092e5f9dc825baf8fe6dd (diff)
downloaduhd-a7049e4ff79cdc205db76bf7270219f254073961.tar.gz
uhd-a7049e4ff79cdc205db76bf7270219f254073961.tar.bz2
uhd-a7049e4ff79cdc205db76bf7270219f254073961.zip
uhd: Fixed multiple compiler warnings
- Use ULL and LL etc. so compiler doesn't need to decide constant's types - define the empty 'while' loop to include {} to make older compilers happy - Use explicit type names for BOOST_CHECK_EQUAL
Diffstat (limited to 'host/tests/time_spec_test.cpp')
-rw-r--r--host/tests/time_spec_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/tests/time_spec_test.cpp b/host/tests/time_spec_test.cpp
index c9b9652f9..b98bea7d9 100644
--- a/host/tests/time_spec_test.cpp
+++ b/host/tests/time_spec_test.cpp
@@ -112,8 +112,8 @@ BOOST_AUTO_TEST_CASE(test_time_large_ticks_to_time_spec)
BOOST_AUTO_TEST_CASE(test_time_error_irrational_rate)
{
- static const double rate = 1625e3/6;
- const long long tick_in = 23423436291667;
+ static const double rate = 1625e3/6.0;
+ const long long tick_in = 23423436291667ll;
const uhd::time_spec_t ts = uhd::time_spec_t::from_ticks(tick_in, rate);
const long long tick_out = ts.to_ticks(rate);
const long long err = tick_in - tick_out;