Browse Source

fixed bug in bit vector copy constructor pointed out by Joachim Klein

tempestpy_adaptions
dehnert 7 years ago
parent
commit
c20f3a9400
  1. 1
      src/storm/storage/BitVector.cpp

1
src/storm/storage/BitVector.cpp

@ -118,6 +118,7 @@ namespace storm {
bitCount = other.bitCount; bitCount = other.bitCount;
if (buckets && bucketCount() != other.bucketCount()) { if (buckets && bucketCount() != other.bucketCount()) {
delete[] buckets; delete[] buckets;
buckets = nullptr;
} }
if (!buckets) { if (!buckets) {
buckets = new uint64_t[other.bucketCount()]; buckets = new uint64_t[other.bucketCount()];

Loading…
Cancel
Save