diff --git a/include/boost/math/common_factor_rt.hpp b/include/boost/math/common_factor_rt.hpp index f45f3a0..ef2a967 100644 --- a/include/boost/math/common_factor_rt.hpp +++ b/include/boost/math/common_factor_rt.hpp @@ -78,8 +78,8 @@ namespace detail RingType gcd_euclidean ( - RingType a, - RingType b + RingType a, + RingType b ) { // Avoid repeated construction @@ -116,7 +116,7 @@ namespace detail IntegerType const zero = static_cast( 0 ); IntegerType const result = gcd_euclidean( a, b ); - return ( result < zero ) ? -result : result; + return ( result < zero ) ? static_cast(-result) : result; } // Greatest common divisor for unsigned binary integers @@ -212,7 +212,7 @@ namespace detail IntegerType const zero = static_cast( 0 ); IntegerType const result = lcm_euclidean( a, b ); - return ( result < zero ) ? -result : result; + return ( result < zero ) ? static_cast(-result) : result; } // Function objects to find the best way of computing GCD or LCM