From df7ed27b78920b409971041e5bb9f7c2dc7e22b9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 12 Sep 2023 20:36:53 +0200 Subject: [PATCH] util/IntrusiveForwardList: fix move operator, really swap counter --- src/util/IntrusiveForwardList.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/IntrusiveForwardList.hxx b/src/util/IntrusiveForwardList.hxx index 2f3302064..82e200317 100644 --- a/src/util/IntrusiveForwardList.hxx +++ b/src/util/IntrusiveForwardList.hxx @@ -157,7 +157,7 @@ public: IntrusiveForwardList &operator=(IntrusiveForwardList &&src) noexcept { using std::swap; swap(head, src.head); - swap(counter, counter); + swap(counter, src.counter); return *this; }