Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
karasikov committed Mar 16, 2021
1 parent 28efb9e commit 89b5ca7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions include/sdsl/int_vector_buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ class int_vector_buffer
if (m_size-m_begin<m_buffersize)
util::set_to_value(m_buffer, 0);
uint64_t wb = std::min(m_buffersize*width(), (m_size-m_begin)*width()+7)/8;
if (wb > m_buffer.bit_size() / 8) {
std::cout << "WRITE TO BUFFER: OUT OF BOUNDS" << std::endl;
exit(1);
}
m_ifile->read(reinterpret_cast<char*>(m_buffer.data()), wb);
m_ifile_pos += wb;
if (!m_ifile->good())
Expand All @@ -104,10 +100,6 @@ class int_vector_buffer
throw_error("seekp error");
}
uint64_t wb = std::min(m_buffersize*width(), (m_size-m_begin)*width()+7)/8;
if (wb > m_buffer.bit_size() / 8) {
std::cout << "READ FROM BUFFER: OUT OF BOUNDS" << std::endl;
exit(1);
}
m_ofile->write(reinterpret_cast<const char*>(m_buffer.data()), wb);
if (!m_ofile->good())
throw_error("write block error");
Expand Down

0 comments on commit 89b5ca7

Please sign in to comment.