Fix trivial warnings in MPRealSupport

This commit is contained in:
Christoph Hertzberg
2014-07-18 16:39:58 +02:00
parent 68eafc10b1
commit ef4a86d6b8
2 changed files with 5 additions and 5 deletions

View File

@@ -88,9 +88,9 @@ int main()
inline static Real epsilon (const Real& x) { return mpfr::machine_epsilon(x); }
inline static Real dummy_precision()
{
unsigned int weak_prec = ((mpfr::mpreal::get_default_prec()-1) * 90) / 100;
return mpfr::machine_epsilon(weak_prec);
{
mpfr_prec_t weak_prec = ((mpfr::mpreal::get_default_prec()-1) * 90) / 100;
return mpfr::machine_epsilon(weak_prec);
}
};