diff --git a/src/block_cache.h b/src/block_cache.h index 9fcaf42e7..f2ebfa261 100644 --- a/src/block_cache.h +++ b/src/block_cache.h @@ -150,8 +150,8 @@ public: } // Remove old entries until we're under the max size - for (auto it = age.rbegin(); size > max_size && it != age.rend(); ) - KillMacroBlock(**it++); + for (auto it = age.rbegin(); size > max_size && it != age.rend(); it++) + KillMacroBlock(**it); } /// @brief Obtain a data block from the cache