Browse Source

Fixed some minor issues.

Former-commit-id: 410be1e1a9
tempestpy_adaptions
dehnert 10 years ago
parent
commit
b77772b242
  1. 2
      src/solver/Z3SmtSolver.cpp
  2. 4
      src/storage/BitVector.cpp

2
src/solver/Z3SmtSolver.cpp

@ -1,4 +1,4 @@
#include "src/solver/Z3Smtsolver.h"
#include "src/solver/Z3SmtSolver.h"
#include "src/exceptions/NotSupportedException.h"
#include "src/exceptions/InvalidStateException.h"

4
src/storage/BitVector.cpp

@ -372,13 +372,13 @@ namespace storm {
bool BitVector::full() const {
// Check that all buckets except the last one have all bits set.
for (uint_fast64_t index = 0; index < bucketVector.size() - 1; ++index) {
if (bucketVector[index] != -1ll) {
if (bucketVector[index] != -1ull) {
return false;
}
}
// Now check whether the relevant bits are set in the last bucket.
if ((bucketVector.back() & ((1ll << (bitCount & mod64mask)) - 1ll)) != ((1ll << (bitCount & mod64mask)) - 1ll)) {
if ((bucketVector.back() & ((1ull << (bitCount & mod64mask)) - 1ull)) != ((1ull << (bitCount & mod64mask)) - 1ull)) {
return false;
}
return true;

Loading…
Cancel
Save