mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd: Evade type-punning the iov list node.
This commit is contained in:
parent
b7f1f04412
commit
55a4377d49
1 changed files with 2 additions and 2 deletions
|
@ -89,10 +89,10 @@ ircd::iov<T>::node::node(iov &iov,
|
||||||
|
|
||||||
const auto &address
|
const auto &address
|
||||||
{
|
{
|
||||||
reinterpret_cast<T *>(&list_node)
|
reinterpret_cast<uint8_t *>(&list_node)
|
||||||
};
|
};
|
||||||
|
|
||||||
list.get_allocator().s->next = address;
|
list.get_allocator().s->next = reinterpret_cast<T *>(address);
|
||||||
list.emplace_front(std::forward<args>(a)...);
|
list.emplace_front(std::forward<args>(a)...);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue