diff --git a/src/storm/storage/geometry/nativepolytopeconversion/QuickHull.cpp b/src/storm/storage/geometry/nativepolytopeconversion/QuickHull.cpp index e4508b72c..76a1a92a6 100644 --- a/src/storm/storage/geometry/nativepolytopeconversion/QuickHull.cpp +++ b/src/storm/storage/geometry/nativepolytopeconversion/QuickHull.cpp @@ -34,7 +34,7 @@ namespace storm { for (uint_fast64_t vertexIndex : vertexIndices){ insidePoint += points[vertexIndex]; } - insidePoint /= storm::utility::convertNumber((uint_fast64_t) vertexIndices.size()); + insidePoint /= storm::utility::convertNumber(static_cast(vertexIndices.size())); // Create the initial facets from the found vertices. std::vector facets = computeInitialFacets(points, vertexIndices, insidePoint); diff --git a/src/storm/utility/KwekMehlhorn.cpp b/src/storm/utility/KwekMehlhorn.cpp index 367c9a595..985f12789 100644 --- a/src/storm/utility/KwekMehlhorn.cpp +++ b/src/storm/utility/KwekMehlhorn.cpp @@ -31,7 +31,7 @@ namespace storm { std::pair::IntegerType, typename NumberTraits::IntegerType> truncateToRational(ImpreciseType const& value, uint64_t precision) { typedef typename NumberTraits::IntegerType IntegerType; - IntegerType powerOfTen = storm::utility::pow(storm::utility::convertNumber(10ull), precision); + IntegerType powerOfTen = storm::utility::pow(storm::utility::convertNumber(static_cast(10)), precision); IntegerType truncated = storm::utility::trunc(value * powerOfTen); return std::make_pair(truncated, powerOfTen); } diff --git a/src/storm/utility/constants.cpp b/src/storm/utility/constants.cpp index ba6f751b7..fac7bea78 100644 --- a/src/storm/utility/constants.cpp +++ b/src/storm/utility/constants.cpp @@ -497,7 +497,7 @@ namespace storm { } template<> - GmpRationalNumber convertNumber(unsigned long long const& number){ + GmpRationalNumber convertNumber(uint_fast64_t const& number){ STORM_LOG_ASSERT(static_cast(number) == number, "Rationalizing failed, because the number is too large."); return carl::rationalize(static_cast(number)); }