From 3b90236b7bdfb81490dec1fa265c3cd96c2c7891 Mon Sep 17 00:00:00 2001 From: Ilya Dryomov Date: Sat, 6 Jan 2024 12:22:35 +0100 Subject: [PATCH] common/bit_vector: fix IteratorImpl post-increment operator It's totally broken: instead of returning the current position and moving to the next position, it returns the next position and doesn't move anywhere. Luckily it hasn't been used until now. Signed-off-by: Ilya Dryomov (cherry picked from commit 2ab5b52f71c88cb55f8ed82f1dfd0115fdd6e022) --- src/common/bit_vector.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/bit_vector.hpp b/src/common/bit_vector.hpp index 9ce3e8b1ebb23..09ac98b32c3bb 100644 --- a/src/common/bit_vector.hpp +++ b/src/common/bit_vector.hpp @@ -129,7 +129,7 @@ public: inline IteratorImpl operator++(int) { IteratorImpl iterator_impl(*this); - ++iterator_impl; + ++*this; return iterator_impl; } inline IteratorImpl operator+(uint64_t offset) { -- 2.39.5