Commit 1ec84393 authored by Laurent Belcour's avatar Laurent Belcour

Merging with gael

parents 9b9c16e3 b5bdc19a
......@@ -166,7 +166,7 @@ bool rational_fitter_cgal::fit_data(const data* dat, int np, int nq, function*&
#endif
double delta = sigma_m / sigma_M ;
if(isnan(delta) || (abs(delta) == std::numeric_limits<double>::infinity()))
if(std::isnan(delta) || (std::abs(delta) == std::numeric_limits<double>::infinity()))
{
#ifdef DEBUG
std::cerr << "<<ERROR>> delta factor is NaN of Inf" << std::endl ;
......@@ -250,7 +250,7 @@ bool rational_fitter_cgal::fit_data(const data* dat, int np, int nq, function*&
for(int i=0; i<np+nq; ++i)
{
const double v = (double)CGAL::to_double(*(s.variable_numerators_begin()+i)) ;
solves_qp = solves_qp && !isnan(v) && (v != std::numeric_limits<double>::infinity()) ;
solves_qp = solves_qp && !std::isnan(v) && (v != std::numeric_limits<double>::infinity()) ;
}
if(solves_qp)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment