Skip to content

Commit

Permalink
Fixed case: n=1
Browse files Browse the repository at this point in the history
  • Loading branch information
simongog committed Sep 30, 2014
1 parent 0ea4987 commit 7767a30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/sdsl/dac_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ dac_vector<t_b, t_rank>::dac_vector(const Container& c)
m_level_pointer_and_rank[0] = n; // level 0 has n entries

uint8_t level_x_2 = 0;
uint8_t max_level_x_2 = 0;
uint8_t max_level_x_2 = 4;
for (size_type i=0; i < n; ++i) {
val=c[i];
val >>= t_b; // shift value b bits to the right
Expand Down Expand Up @@ -301,7 +301,7 @@ dac_vector<t_b, t_rank>::dac_vector(int_vector_buffer<int_width>& v_buf)
m_level_pointer_and_rank[0] = n; // level 0 has n entries

uint8_t level_x_2 = 0;
uint8_t max_level_x_2 = 0;
uint8_t max_level_x_2 = 4;
for (size_type i=0; i < n; ++i) {
val=v_buf[i];
val >>= t_b; // shift value b bits to the right
Expand Down

0 comments on commit 7767a30

Please sign in to comment.