Browse Source

constants.cpp: convertNumber(int_fast64_t) to RationalFunction, fix signed/unsigned cast

tempestpy_adaptions
JK 8 years ago
parent
commit
b623b4184e
  1. 2
      src/storm/utility/constants.cpp

2
src/storm/utility/constants.cpp

@ -397,7 +397,7 @@ namespace storm {
template<>
RationalFunction convertNumber(int_fast64_t const& number){
STORM_LOG_ASSERT(static_cast<carl::sint>(number) == number, "Rationalizing failed, because the number is too large.");
return RationalFunction(carl::rationalize<RationalNumber>(static_cast<carl::uint>(number)));
return RationalFunction(carl::rationalize<RationalNumber>(static_cast<carl::sint>(number)));
}
template<>

Loading…
Cancel
Save