Skip to content

Commit

Permalink
FIX: [C++] Add type-casting due to missing operator overload when usi…
Browse files Browse the repository at this point in the history
…ng MSVC
  • Loading branch information
RUrlus committed Feb 18, 2024
1 parent cd157d8 commit 18d418f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/external/pcg-cpp/include/pcg_random.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 18d418f

Please sign in to comment.