aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2015-03-11 16:45:19 -0700
committerMartin Braun <martin.braun@ettus.com>2015-03-11 16:58:23 -0700
commitcc7d37f114d5a14b4e45372f38324bf95115b6b9 (patch)
tree0b6a39418c0aa5caafa3039b578c94d3db8f1775 /host/utils
parentfae746179cbb1d8ac146dcae9b5d6cb58b366a56 (diff)
downloaduhd-cc7d37f114d5a14b4e45372f38324bf95115b6b9.tar.gz
uhd-cc7d37f114d5a14b4e45372f38324bf95115b6b9.tar.bz2
uhd-cc7d37f114d5a14b4e45372f38324bf95115b6b9.zip
uhd: Fixed several type-cast related warnings for naggy compilers
Diffstat (limited to 'host/utils')
-rw-r--r--host/utils/usrp_cal_utils.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/utils/usrp_cal_utils.hpp b/host/utils/usrp_cal_utils.hpp
index c027a4785..ccdb0a61d 100644
--- a/host/utils/usrp_cal_utils.hpp
+++ b/host/utils/usrp_cal_utils.hpp
@@ -249,7 +249,7 @@ static void capture_samples(
// Right after the stream is started, there will be transient data.
// That transient data is discarded and only "good" samples are returned.
- size_t nsamps_to_discard = usrp->get_rx_rate() * 0.001; // 1ms to be discarded
+ size_t nsamps_to_discard = size_t(usrp->get_rx_rate() * 0.001); // 1ms to be discarded
std::vector<samp_type> discard_buff(nsamps_to_discard);
uhd::stream_cmd_t stream_cmd(uhd::stream_cmd_t::STREAM_MODE_NUM_SAMPS_AND_DONE);