0
0
Fork 0
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:
Jason Volk 2018-04-08 11:27:16 -07:00
parent f3539f3dbe
commit 65c8ab3ba7

View file

@ -128,7 +128,7 @@ struct ircd::allocator::fixed<T, size>::allocator
pointer allocate(const size_type &n, const const_pointer &hint = nullptr) pointer allocate(const size_type &n, const const_pointer &hint = nullptr)
{ {
const uint hintpos(hint? hint - s->buf.data() : -1); 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) void deallocate(const pointer &p, const size_type &n)