mirror of
https://github.com/matrix-construct/construct
synced 2024-05-15 09:31:46 +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,
|
||||
const bool val)
|
||||
{
|
||||
reset(pos);
|
||||
buf[byte(pos)] |= word(val) << bit(pos);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue