From f1e1a328e9a26eb956d8a2fb015d810bd04d4f96 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 3 Jan 2019 13:21:32 -0800 Subject: 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. --- host/lib/usrp/x300/x300_image_loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/usrp/x300/x300_image_loader.cpp') 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 bitstream; // .bin image extracted from .lvbitx file } x300_session_t; -- cgit v1.2.3