Small code tweak in DualThreadStack::swap_next

This commit is contained in:
Maxime Coste 2018-11-14 17:50:17 +11:00
parent 54d35472c0
commit 021ba55b38

View File

@ -635,11 +635,10 @@ private:
void swap_next() void swap_next()
{ {
kak_assert(m_next < m_capacity); kak_assert(m_next < m_capacity);
do const int32_t count = m_capacity - m_next;
{ std::copy_n(m_data + m_next, count, m_data);
m_data[m_current++] = m_data[m_next++]; m_current = count;
} m_next = m_capacity;
while (m_next < m_capacity);
} }
void grow_ifn() void grow_ifn()