diff --git a/include/pcg_random.hpp b/include/pcg_random.hpp index d479a81..341c865 100644 --- a/include/pcg_random.hpp +++ b/include/pcg_random.hpp @@ -333,7 +333,7 @@ class specific_stream { void set_stream(itype specific_seq) { - inc_ = (specific_seq << 1) | 1; + inc_ = (specific_seq << 1) | itype(1U); } static constexpr bool can_specify_stream = true;