diff options
| author | Martin Braun <martin.braun@ettus.com> | 2019-05-22 13:49:33 -0700 | 
|---|---|---|
| committer | Martin Braun <martin.braun@ettus.com> | 2019-05-23 08:46:59 -0700 | 
| commit | 13e71e2793a642d6af44411cd7b7678d84b35ac5 (patch) | |
| tree | 8e1c76ba125d304edeafe82265c12494747382da /host/tests | |
| parent | d2acf841f3576b6f7b948eef94f75c712617851c (diff) | |
| download | uhd-13e71e2793a642d6af44411cd7b7678d84b35ac5.tar.gz uhd-13e71e2793a642d6af44411cd7b7678d84b35ac5.tar.bz2 uhd-13e71e2793a642d6af44411cd7b7678d84b35ac5.zip | |
tests: Fix mock_ctrl_iface for 32-bit MSVC
Widening and narrowing of bitwidths causes errors on this platform
without explicit casts.
Diffstat (limited to 'host/tests')
| -rw-r--r-- | host/tests/common/mock_ctrl_iface_impl.cpp | 4 | 
1 files 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;          } | 
