aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/io_impl.cpp
diff options
context:
space:
mode:
authorAndrej Rode <andrej.rode@ettus.com>2016-12-16 10:40:00 -0800
committerMartin Braun <martin.braun@ettus.com>2017-01-12 15:15:37 -0800
commit6d7692f393b9d1e5e75b8239a3249ee02e0441d9 (patch)
tree3fc05ae46f9be46f8fcab696f690e589aaf97c60 /host/lib/usrp/usrp2/io_impl.cpp
parentfba670a3c7d45847e48fc9dc8a3bdb6da0b1b948 (diff)
downloaduhd-6d7692f393b9d1e5e75b8239a3249ee02e0441d9.tar.gz
uhd-6d7692f393b9d1e5e75b8239a3249ee02e0441d9.tar.bz2
uhd-6d7692f393b9d1e5e75b8239a3249ee02e0441d9.zip
usrp2: fixes according to coverity reports
Diffstat (limited to 'host/lib/usrp/usrp2/io_impl.cpp')
-rw-r--r--host/lib/usrp/usrp2/io_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp2/io_impl.cpp b/host/lib/usrp/usrp2/io_impl.cpp
index 199436fa2..224519944 100644
--- a/host/lib/usrp/usrp2/io_impl.cpp
+++ b/host/lib/usrp/usrp2/io_impl.cpp
@@ -433,7 +433,7 @@ rx_streamer::sptr usrp2_impl::get_rx_stream(const uhd::stream_args_t &args_){
;
const size_t bpp = _mbc[_mbc.keys().front()].rx_dsp_xports[0]->get_recv_frame_size() - hdr_size;
const size_t bpi = convert::get_bytes_per_item(args.otw_format);
- const size_t spp = unsigned(args.args.cast<double>("spp", bpp/bpi));
+ const size_t spp = args.args.cast<size_t>("spp", bpp/bpi);
//make the new streamer given the samples per packet
boost::shared_ptr<sph::recv_packet_streamer> my_streamer = boost::make_shared<sph::recv_packet_streamer>(spp);