From 6c73947fe00cfddd86392f444e8d8c7df46bfc47 Mon Sep 17 00:00:00 2001 From: Chip Hogg Date: Thu, 10 Mar 2022 23:50:33 +0000 Subject: [PATCH] Satisfy complaint This line shouldn't _actually_ ever be reachable, but I can't fault the compiler for not figuring that out. --- src/core/include/units/bits/prime.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/include/units/bits/prime.h b/src/core/include/units/bits/prime.h index 0871b17b..4c830b75 100644 --- a/src/core/include/units/bits/prime.h +++ b/src/core/include/units/bits/prime.h @@ -131,6 +131,8 @@ struct WheelFactorizer { if (const auto k = first_factor_maybe(n, wheel + p)) { return *k; } } } + + return n; } static constexpr bool is_prime(std::size_t n) {