0
0
Fork 0
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:
Jason Volk 2019-08-02 21:15:57 -07:00
parent aa013ac526
commit be4a33c136

View file

@ -306,14 +306,14 @@ struct ircd::m::id::buf
{
static constexpr const size_t SIZE
{
m::id::MAX_SIZE
m::id::MAX_SIZE + 1
};
private:
fixed_buffer<mutable_buffer, SIZE + 1> b;
fixed_buffer<mutable_buffer, SIZE> b;
public:
operator const fixed_buffer<mutable_buffer, SIZE + 1> &() const
operator const fixed_buffer<mutable_buffer, SIZE> &() const
{
return b;
}