mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
ircd::allocator: Fix argument error.
This commit is contained in:
parent
f3539f3dbe
commit
65c8ab3ba7
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ struct ircd::allocator::fixed<T, size>::allocator
|
|||
pointer allocate(const size_type &n, const const_pointer &hint = nullptr)
|
||||
{
|
||||
const uint hintpos(hint? hint - s->buf.data() : -1);
|
||||
return s->buf.data() + s->state::allocate(n, hint);
|
||||
return s->buf.data() + s->state::allocate(n, hintpos);
|
||||
}
|
||||
|
||||
void deallocate(const pointer &p, const size_type &n)
|
||||
|
|
Loading…
Reference in a new issue