diff --git a/src/util/buffer.h b/src/util/buffer.h index 6926612af..ec8972f46 100644 --- a/src/util/buffer.h +++ b/src/util/buffer.h @@ -151,7 +151,7 @@ public: lean_assert(idx < size()); for (unsigned i = idx+1; i < size(); i++) m_buffer[i-1] = m_buffer[i]; - m_pos--; + pop_back(); } void erase_elem(T const & elem) {