From 55a4377d498058fbcf385a91feb9fceb8b9258e0 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 4 Oct 2017 16:24:27 -0700 Subject: [PATCH] ircd: Evade type-punning the iov list node. --- include/ircd/iov.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/ircd/iov.h b/include/ircd/iov.h index 102460a41..115088125 100644 --- a/include/ircd/iov.h +++ b/include/ircd/iov.h @@ -89,10 +89,10 @@ ircd::iov::node::node(iov &iov, const auto &address { - reinterpret_cast(&list_node) + reinterpret_cast(&list_node) }; - list.get_allocator().s->next = address; + list.get_allocator().s->next = reinterpret_cast(address); list.emplace_front(std::forward(a)...); }