diff --git a/include/openrand/phillox.h b/include/openrand/phillox.h index 4abac14..441402e 100644 --- a/include/openrand/phillox.h +++ b/include/openrand/phillox.h @@ -76,7 +76,8 @@ class Phillox : public BaseRNG { generate(); static_assert(std::is_same_v || std::is_same_v); - if constexpr (std::is_same_v) return _out[0]; + if constexpr (std::is_same_v) + return _out[0]; // Not wrapping this block in else{} would lead to compiler warning else {