diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-01-03 13:21:32 -0800 |
---|---|---|
committer | Brent Stapleton <brent.stapleton@ettus.com> | 2019-01-07 13:57:55 -0800 |
commit | f1e1a328e9a26eb956d8a2fb015d810bd04d4f96 (patch) | |
tree | f977b70255ef1394f2dd72b4222fad36635fa39a /host/lib/usrp/x300/x300_image_loader.cpp | |
parent | 40bb17709182f7ce4b3761eb7e809c2be05663d2 (diff) | |
download | uhd-f1e1a328e9a26eb956d8a2fb015d810bd04d4f96.tar.gz uhd-f1e1a328e9a26eb956d8a2fb015d810bd04d4f96.tar.bz2 uhd-f1e1a328e9a26eb956d8a2fb015d810bd04d4f96.zip |
x300: Fix compiler warnings related to type conversions
These compiler warnings mostly pop up on MSVC. Most of them are due to
inconsistent usage of size_t, uint{8,16,32}_t, and even int.
This commit changes types mostly such that variables have the correct
type to begin with, although it also contains a few explicit type-casts.
Diffstat (limited to 'host/lib/usrp/x300/x300_image_loader.cpp')
-rw-r--r-- | host/lib/usrp/x300/x300_image_loader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/x300/x300_image_loader.cpp b/host/lib/usrp/x300/x300_image_loader.cpp index c0d692ae5..4e2c9e580 100644 --- a/host/lib/usrp/x300/x300_image_loader.cpp +++ b/host/lib/usrp/x300/x300_image_loader.cpp @@ -89,7 +89,7 @@ typedef struct { std::string rpc_port; udp_simple::sptr write_xport; udp_simple::sptr read_xport; - uint32_t size; + size_t size; uint8_t data_in[udp_simple::mtu]; std::vector<char> bitstream; // .bin image extracted from .lvbitx file } x300_session_t; |