From 5af0216a365b7e3190f2762c38d588e1384cf4a8 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 22 May 2019 13:49:33 -0700 Subject: tests: Fix mock_ctrl_iface for 32-bit MSVC Widening and narrowing of bitwidths causes errors on this platform without explicit casts. --- host/tests/common/mock_ctrl_iface_impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host/tests/common/mock_ctrl_iface_impl.cpp b/host/tests/common/mock_ctrl_iface_impl.cpp index e8560ad9e..af32637df 100644 --- a/host/tests/common/mock_ctrl_iface_impl.cpp +++ b/host/tests/common/mock_ctrl_iface_impl.cpp @@ -28,8 +28,8 @@ uint64_t mock_ctrl_iface_impl::send_cmd_pkt(const size_t addr, case uhd::rfnoc::SR_READBACK_REG_USER: return 0x0123456789ABCDEF; case uhd::rfnoc::SR_READBACK_COMPAT: - return uhd::rfnoc::NOC_SHELL_COMPAT_MAJOR << 32 - | uhd::rfnoc::NOC_SHELL_COMPAT_MINOR; + return uint64_t(uhd::rfnoc::NOC_SHELL_COMPAT_MAJOR) << 32 + | uint64_t(uhd::rfnoc::NOC_SHELL_COMPAT_MINOR); default: return 0; } -- cgit v1.2.3-59-g8ed1b