Skip to content

Commit

Permalink
Fixing a shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed Aug 23, 2016
1 parent 025d9a5 commit de58505
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/concise.h
Original file line number Diff line number Diff line change
Expand Up @@ -346,24 +346,24 @@ class ConciseSet {
}

uint32_t size() const {
uint32_t size = 0;
uint32_t cardsize = 0;
for (int i = 0; i <= lastWordIndex; i++) {
uint32_t w = words[i];
if (isLiteral(w)) {
size += getLiteralBitCount(w);
cardsize += getLiteralBitCount(w);
} else {
if (isZeroSequence(w)) {
if (!isSequenceWithNoBits(w))
size++;
cardsize++;
} else {
size += maxLiteralLengthMultiplication(
cardsize += maxLiteralLengthMultiplication(
getSequenceCount(w) + 1);
if (!isSequenceWithNoBits(w))
size--;
cardsize--;
}
}
}
return size;
return cardsize;
}

static ConciseSet<wah_mode> fast_logicalor(size_t n, const ConciseSet<wah_mode> **inputs) {
Expand Down

0 comments on commit de58505

Please sign in to comment.