Browse Source

slightly more informative error message in out-of-bounds in bitvector

tempestpy_adaptions
Sebastian Junges 8 years ago
parent
commit
276261ae55
  1. 2
      src/storm/storage/BitVector.cpp

2
src/storm/storage/BitVector.cpp

@ -486,7 +486,7 @@ namespace storm {
void BitVector::setFromInt(uint_fast64_t bitIndex, uint_fast64_t numberOfBits, uint64_t value) {
STORM_LOG_ASSERT(numberOfBits <= 64, "Number of bits must be <= 64.");
STORM_LOG_ASSERT(numberOfBits == 64 || (value >> numberOfBits) == 0, "Integer value too large to fit in the given number of bits.");
STORM_LOG_ASSERT(numberOfBits == 64 || (value >> numberOfBits) == 0, "Integer value ("<< value << ") too large to fit in the given number of bits (" << numberOfBits << ").");
uint64_t bucket = bitIndex >> 6;
uint64_t bitIndexInBucket = bitIndex & mod64mask;

Loading…
Cancel
Save