Skip to content
Snippets Groups Projects
Commit dbfb2443 authored by Thomas Feuvrier's avatar Thomas Feuvrier
Browse files

Remplacement de abs par fabs (Warning sous SunOS).

parent 0e387350
Branches
Tags
No related merge requests found
......@@ -20,6 +20,8 @@
#pragma warning ( disable : 4786 )
#endif
#include <math.h>
#include "otbOrientationPathFunction.h"
#include "itkPolyLineParametricPath.h"
#include "itkExceptionObject.h"
......@@ -55,7 +57,7 @@ int otbOrientationPath( int argc, char * argv[] )
RealType ResultTheta = function->Evaluate();
std::cout.precision(10);
std::cout << "Orientation found : " << ResultTheta <<std::endl;
if( abs(ResultTheta-Theta)>=10e-15)
if( fabs(static_double<double>(ResultTheta-Theta))>=10e-15)
{
std::cout << "Error in Theta estimation:" <<(ResultTheta-Theta)<<std::endl;
return EXIT_FAILURE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment