diff options
author | Martin Braun <martin.braun@ettus.com> | 2015-03-11 16:45:19 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-03-11 16:58:23 -0700 |
commit | cc7d37f114d5a14b4e45372f38324bf95115b6b9 (patch) | |
tree | 0b6a39418c0aa5caafa3039b578c94d3db8f1775 /host/examples | |
parent | fae746179cbb1d8ac146dcae9b5d6cb58b366a56 (diff) | |
download | uhd-cc7d37f114d5a14b4e45372f38324bf95115b6b9.tar.gz uhd-cc7d37f114d5a14b4e45372f38324bf95115b6b9.tar.bz2 uhd-cc7d37f114d5a14b4e45372f38324bf95115b6b9.zip |
uhd: Fixed several type-cast related warnings for naggy compilers
Diffstat (limited to 'host/examples')
-rw-r--r-- | host/examples/txrx_loopback_to_file.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/host/examples/txrx_loopback_to_file.cpp b/host/examples/txrx_loopback_to_file.cpp index 4eb6daa6c..efa23c410 100644 --- a/host/examples/txrx_loopback_to_file.cpp +++ b/host/examples/txrx_loopback_to_file.cpp @@ -182,7 +182,7 @@ template<typename samp_type> void recv_to_file( UHD_ASSERT_THROW(outfiles.size() == buffs.size()); UHD_ASSERT_THROW(buffs.size() == rx_channel_nums.size()); bool overflow_message = true; - float timeout = settling_time + 0.1; //expected settling time + padding for first recv + float timeout = settling_time + 0.1f; //expected settling time + padding for first recv //setup streaming uhd::stream_cmd_t stream_cmd((num_requested_samples == 0)? @@ -196,7 +196,7 @@ template<typename samp_type> void recv_to_file( while(not stop_signal_called and (num_requested_samples != num_total_samps or num_requested_samples == 0)){ size_t num_rx_samps = rx_stream->recv(buff_ptrs, samps_per_buff, md, timeout); - timeout = 0.1; //small timeout for subsequent recv + timeout = 0.1f; //small timeout for subsequent recv if (md.error_code == uhd::rx_metadata_t::ERROR_CODE_TIMEOUT) { std::cout << boost::format("Timeout while streaming") << std::endl; |