Skip to content
Snippets Groups Projects
Commit 0398d16e authored by Zhenyu Bai's avatar Zhenyu Bai
Browse files

bug fix

parent a8d2edbe
Branches
No related tags found
No related merge requests found
......@@ -514,7 +514,7 @@ void BitVector::resize(int new_size) {
if(wcount() != new_wcount) {
word_t *new_bits = new word_t[new_wcount];
if(bits != nullptr) {
array::copy(new_bits, bits, wcount());
array::copy(new_bits, bits,min(wcount(),new_wcount) );
delete [] bits;
}
bits = new_bits;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment