mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd::util::bitset: Fix assertion made under constant evaluation.
This commit is contained in:
parent
2147d00dd4
commit
cefcc75943
1 changed files with 3 additions and 1 deletions
|
@ -152,7 +152,9 @@ const
|
|||
{
|
||||
constexpr auto max(words - 1);
|
||||
const auto off(pos / 8);
|
||||
assert(off <= max);
|
||||
if(!__builtin_is_constant_evaluated())
|
||||
assert(off <= max);
|
||||
|
||||
return std::min(off, max);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue