Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
karasikov committed Jan 23, 2023
1 parent 1a30d52 commit 1007922
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/sdsl/int_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1273,12 +1273,15 @@ void int_vector<t_width>::swap(int_vector& v)
size_type size = m_size;
uint64_t* data = m_data;
uint8_t int_width = m_width;
std::shared_ptr<mmap_context> mmap_context = m_mmap_context;
m_size = v.m_size;
m_data = v.m_data;
width(v.m_width);
m_mmap_context = v.m_mmap_context;
v.m_size = size;
v.m_data = data;
v.width(int_width);
v.m_mmap_context = mmap_context;
}
}

Expand Down

0 comments on commit 1007922

Please sign in to comment.