diff options
author | Michael Dickens <michael.dickens@ettus.com> | 2015-03-07 11:12:58 -0500 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-03-11 15:33:17 -0700 |
commit | a7049e4ff79cdc205db76bf7270219f254073961 (patch) | |
tree | d8dd37ecfaa3719a82c5aa3ce56f0d04faae01ef /host/tests/time_spec_test.cpp | |
parent | a4eee83b82a5f57b22c092e5f9dc825baf8fe6dd (diff) | |
download | uhd-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.cpp | 4 |
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; |