0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 07:23:53 +01:00

ircd: Evade type-punning the iov list node.

This commit is contained in:
Jason Volk 2017-10-04 16:24:27 -07:00
parent b7f1f04412
commit 55a4377d49

View file

@ -89,10 +89,10 @@ ircd::iov<T>::node::node(iov &iov,
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)...);
}