From fe4a62b38f5a835b8257b60f0701c74ebbc50a18 Mon Sep 17 00:00:00 2001 From: Mikhail Karasikov Date: Wed, 31 May 2023 18:55:05 +0200 Subject: [PATCH] removed unused variable --- include/sdsl/util.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/sdsl/util.hpp b/include/sdsl/util.hpp index 1e89293a..5a782686 100644 --- a/include/sdsl/util.hpp +++ b/include/sdsl/util.hpp @@ -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));