From 5bba40ed740a831537b8986528abf38f8f1cc448 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 3 Jan 2019 13:25:35 -0800 Subject: b200: 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/b200/b200_impl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/lib/usrp/b200/b200_impl.hpp') diff --git a/host/lib/usrp/b200/b200_impl.hpp b/host/lib/usrp/b200/b200_impl.hpp index f691b371f..3c562f8b3 100644 --- a/host/lib/usrp/b200/b200_impl.hpp +++ b/host/lib/usrp/b200/b200_impl.hpp @@ -45,8 +45,8 @@ static const uint16_t B200_FPGA_COMPAT_NUM = 16; static const uint16_t B205_FPGA_COMPAT_NUM = 7; static const double B200_BUS_CLOCK_RATE = 100e6; static const uint32_t B200_GPSDO_ST_NONE = 0x83; -static const size_t B200_MAX_RATE_USB2 = 53248000; // bytes/s -static const size_t B200_MAX_RATE_USB3 = 500000000; // bytes/s +static constexpr double B200_MAX_RATE_USB2 = 53248000; // bytes/s +static constexpr double B200_MAX_RATE_USB3 = 500000000; // bytes/s #define FLIP_SID(sid) (((sid)<<16)|((sid)>>16)) -- cgit v1.2.3