Skip to content

Commit

Permalink
removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
karasikov committed May 31, 2023
1 parent 1e0b3f9 commit fe4a62b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/sdsl/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,11 +490,10 @@ void util::set_to_value(t_int_vec& v, uint64_t k)
uint64_t vec[67] = {0}; // allocate memory for the mask and initialize with zeros
vec[0] = 0;
uint8_t offset = 0;
uint64_t n=0, vals=0;
uint64_t n=0;
do { // loop terminates after at most 64 iterations
vec[n] = vec[n] | (k << offset);
offset += int_width;
vals++;
if (offset >= 64) {
vec[n+1] = 0;
vec[++n] = k >> (int_width-(offset-64));
Expand Down

0 comments on commit fe4a62b

Please sign in to comment.