From 1e38dad31cc860e46458208c7506210d4e108c02 Mon Sep 17 00:00:00 2001 From: Andrei Fedorov Date: Thu, 13 Jun 2024 16:22:12 +0200 Subject: [PATCH] Add a cast --- include/oneapi/mkl/rng/device/detail/mcg59_impl.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/oneapi/mkl/rng/device/detail/mcg59_impl.hpp b/include/oneapi/mkl/rng/device/detail/mcg59_impl.hpp index 0c2a11b31..bc21eb607 100644 --- a/include/oneapi/mkl/rng/device/detail/mcg59_impl.hpp +++ b/include/oneapi/mkl/rng/device/detail/mcg59_impl.hpp @@ -197,10 +197,10 @@ class engine_base> { auto uni_res2 = mcg59_impl::generate(this->state_); if constexpr (VecSize == 1) { - uni_res1 >>= 27; - uni_res2 >>= 27; + uni_res1 >>= UIntType(27); + uni_res2 >>= UIntType(27); - return (uni_res2 << 32) + uni_res1; + return (uni_res2 << UIntType(32)) + uni_res1; } else { sycl::vec vec_out;