From 5a95eb1282e30bd803d7e0b352a8443795842e42 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 2 Nov 2022 19:03:32 +0100 Subject: fix build with Linux and/or GCC --- src/random.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/random.cpp') diff --git a/src/random.cpp b/src/random.cpp index 4da534a3..d3e45292 100644 --- a/src/random.cpp +++ b/src/random.cpp @@ -18,7 +18,7 @@ std::size_t random_engine_impl::operator()() if constexpr(sizeof(std::size_t) > sizeof(std::uint32_t)) { constexpr std::size_t N = (sizeof(std::size_t) + sizeof(std::uint32_t)-1) / sizeof(std::uint32_t); - static_assert(N >= 2); + static_assert(N >= 1); union { std::size_t x; std::uint32_t a[N]; -- cgit v1.2.3