mirror of https://github.com/CGAL/cgal
Fix for Windows 'min/max' bug
This commit is contained in:
parent
cfbf3b9eeb
commit
77f4e02022
|
|
@ -71,7 +71,7 @@ struct Test {
|
||||||
{
|
{
|
||||||
if (t1 == t2)
|
if (t1 == t2)
|
||||||
return true;
|
return true;
|
||||||
if (CGAL::abs(t1 - t2) / CGAL::max(CGAL::abs(t1), CGAL::abs(t2)) < epsilon)
|
if (CGAL::abs(t1 - t2) / (CGAL::max)(CGAL::abs(t1), CGAL::abs(t2)) < epsilon)
|
||||||
return true;
|
return true;
|
||||||
std::cout << " Approximate comparison failed between : " << t1 << " and " << t2 << "\n";
|
std::cout << " Approximate comparison failed between : " << t1 << " and " << t2 << "\n";
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue