mirror of
https://github.com/matrix-construct/construct
synced 2024-05-29 00:03:45 +02:00
ircd::util::bitset: Make set() invertible to false.
This commit is contained in:
parent
6264071248
commit
7be2582714
|
@ -107,6 +107,7 @@ constexpr void
|
||||||
ircd::util::bitset<N>::set(const size_t pos,
|
ircd::util::bitset<N>::set(const size_t pos,
|
||||||
const bool val)
|
const bool val)
|
||||||
{
|
{
|
||||||
|
reset(pos);
|
||||||
buf[byte(pos)] |= word(val) << bit(pos);
|
buf[byte(pos)] |= word(val) << bit(pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue