From f1ecb840ca7f9b8ae377e5e87409aa1b15825a59 Mon Sep 17 00:00:00 2001 From: Ralf Stubner Date: Fri, 17 May 2024 11:37:21 +0200 Subject: [PATCH] Use consistent integer type There is no `pcg_uint128 | int` defined it `__uint128` is not available. --- include/pcg_random.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;