mirror of
https://github.com/matrix-construct/construct
synced 2024-12-29 17:04:03 +01:00
ircd:Ⓜ️🆔 Increase the buf SIZE constant to the next pow2.
This commit is contained in:
parent
aa013ac526
commit
be4a33c136
1 changed files with 3 additions and 3 deletions
|
@ -306,14 +306,14 @@ struct ircd::m::id::buf
|
||||||
{
|
{
|
||||||
static constexpr const size_t SIZE
|
static constexpr const size_t SIZE
|
||||||
{
|
{
|
||||||
m::id::MAX_SIZE
|
m::id::MAX_SIZE + 1
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
fixed_buffer<mutable_buffer, SIZE + 1> b;
|
fixed_buffer<mutable_buffer, SIZE> b;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
operator const fixed_buffer<mutable_buffer, SIZE + 1> &() const
|
operator const fixed_buffer<mutable_buffer, SIZE> &() const
|
||||||
{
|
{
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue