Commit c2da624a authored by Victor Poughon's avatar Victor Poughon

WRG: Use std::abs() instead of abs()

parent 92fb7640
......@@ -108,7 +108,7 @@ int otbAmplitudeFunctorTest(int itkNotUsed(argc), char * itkNotUsed(argv) [])
funct.SetChannelList(channels);
output = funct.operator ()(rgbaPixel);
result = vcl_sqrt(rgbaPixel[i] * rgbaPixel[i] + rgbaPixel[j] * rgbaPixel[j]);
if( abs(static_cast<double>(result)-static_cast<double>(output[0])) > 0.0000001)
if( std::abs(static_cast<double>(result)-static_cast<double>(output[0])) > 0.0000001)
{
std::cout << "vectorPixelType Test RGBAPixelType failed for channels " << i<< " and "
<< j << " !" << std::endl;
......
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