Skip to content
Snippets Groups Projects
Commit 008a32c7 authored by Julien Malik's avatar Julien Malik
Browse files

WRG: overflow in constants

parent d9208a03
Branches
Tags
No related merge requests found
......@@ -92,12 +92,12 @@ SarRadiometricCalibrationFunction<TInputImage, TCoordRep>
if (!this->GetInputImage())
{
return (itk::NumericTraits<RealType>::max());
return (itk::NumericTraits<OutputType>::max());
}
if (!this->IsInsideBuffer(index))
{
return (itk::NumericTraits<RealType>::max());
return (itk::NumericTraits<OutputType>::max());
}
......@@ -123,7 +123,7 @@ SarRadiometricCalibrationFunction<TInputImage, TCoordRep>
const RealType value = static_cast<RealType>(vcl_abs(this->GetInputImage()->GetPixel(index)));
result = functor.operator ()( value);
result = functor(value);
return static_cast<OutputType>(result);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment