We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f63b80 commit 2382ad9Copy full SHA for 2382ad9
1 file changed
include/bitcoin/database/primitives/sieve.hpp
@@ -70,9 +70,10 @@ class sieve
70
template <size_t Size>
71
static CONSTEVAL auto offsets() NOEXCEPT
72
{
73
+ using namespace system;
74
std_array<uint16_t, Size> offset{};
- for (auto index = zero; index < Size; ++index)
75
- offset[index] = to_half(index * add1(index));
+ for (uint16_t index{}; index < Size; ++index)
76
+ offset[index] = to_half(ceilinged_multiply(index, add1(index)));
77
return offset;
78
}
79
0 commit comments