From 18d418fe34bd2bcdb2eeb6c32f3eb5724e874709 Mon Sep 17 00:00:00 2001 From: Ralph Urlus Date: Sun, 18 Feb 2024 19:37:33 +0100 Subject: [PATCH] FIX: [C++] Add type-casting due to missing operator overload when using MSVC --- src/external/pcg-cpp/include/pcg_random.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/external/pcg-cpp/include/pcg_random.hpp b/src/external/pcg-cpp/include/pcg_random.hpp index d479a81..fb78d1e 100644 --- a/src/external/pcg-cpp/include/pcg_random.hpp +++ b/src/external/pcg-cpp/include/pcg_random.hpp @@ -333,7 +333,7 @@ class specific_stream { void set_stream(itype specific_seq) { - inc_ = (specific_seq << 1) | 1; + inc_ = itype(specific_seq << 1) | itype(1U); } static constexpr bool can_specify_stream = true;