Skip to content

Commit

Permalink
Fix GCC 11 warns that writing 1 byte into a region of size 0 [-Wstrin…
Browse files Browse the repository at this point in the history
…gop-overflow=]
  • Loading branch information
yma11 committed Apr 23, 2024
1 parent 3279ebd commit 65fb7d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions velox/vector/SelectivityVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class SelectivityVector {
bits::fillBits(bits_.data(), 0, size_, false);
begin_ = 0;
end_ = 0;
allSelected_ = false;
allSelected_.reset();
}

/**
Expand Down Expand Up @@ -279,7 +279,7 @@ class SelectivityVector {
if (begin_ == -1) {
begin_ = 0;
end_ = 0;
allSelected_ = false;
allSelected_.reset();
return;
}
end_ = bits::findLastBit(bits_.data(), begin_, size_) + 1;
Expand Down

0 comments on commit 65fb7d9

Please sign in to comment.