Small code tweak in DualThreadStack::swap_next
This commit is contained in:
parent
54d35472c0
commit
021ba55b38
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user