diff --git a/src/storm/utility/constants.cpp b/src/storm/utility/constants.cpp index 6664c13d7..2c5210cbe 100644 --- a/src/storm/utility/constants.cpp +++ b/src/storm/utility/constants.cpp @@ -518,7 +518,7 @@ namespace storm { } template<> - RationalFunction convertNumber(int_fast64_t const& number){ + RationalFunction convertNumber(int_fast64_t const& number) { STORM_LOG_ASSERT(static_cast(number) == number, "Rationalizing failed, because the number is too large."); return RationalFunction(carl::rationalize(static_cast(number))); } @@ -530,11 +530,12 @@ namespace storm { } template<> - ClnRationalNumber convertNumber(RationalFunction const& number){ - return convertNumber(number.nominatorAsNumber() / number.denominatorAsNumber()); + ClnRationalNumber convertNumber(RationalFunction const& number) { + storm::RationalFunctionCoefficient tmp = number.nominatorAsNumber() / number.denominatorAsNumber(); + return convertNumber(tmp); } #endif - + #if defined(STORM_HAVE_GMP) template<> RationalFunction convertNumber(GmpRationalNumber const& number) {