From 4ab73f9de9846763eda2d324bf4c8ea9b92e327c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 25 Feb 2021 14:10:51 +0100 Subject: [PATCH] util/IntrusiveList: add missing ToNode() cast in iterator_to() --- src/util/IntrusiveList.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/IntrusiveList.hxx b/src/util/IntrusiveList.hxx index 19b9a5b11..5e724a11e 100644 --- a/src/util/IntrusiveList.hxx +++ b/src/util/IntrusiveList.hxx @@ -266,7 +266,7 @@ public: } static constexpr iterator iterator_to(T &t) noexcept { - return {&t}; + return {&ToNode(t)}; } class const_iterator final