Skip to content
Snippets Groups Projects
Commit 2d264ef0 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

gh-817: code review

A minor style fix, update result file.
parent 3cb0c63d
No related branches found
No related tags found
No related merge requests found
......@@ -281,8 +281,10 @@ MemtxBitset::count(enum iterator_type type, const char *key,
*/
bit_iterator_init(&bit_it, bitset_key, bitset_key_size, true);
size_t result = 0;
while ((bit = bit_iterator_next(&bit_it)) != SIZE_MAX)
result = MAX(result, bitset_index_count(&index, bit));
while ((bit = bit_iterator_next(&bit_it)) != SIZE_MAX) {
size_t count = bitset_index_count(&index, bit);
result = MAX(result, count);
}
return result;
} else if (type == ITER_BITS_ALL_SET) {
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment