Skip to content
Snippets Groups Projects
Commit e5b48331 authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

COMP:change use of rend() function to avoid compilation error on OSX

parent ebb2a7ec
Branches
Tags
No related merge requests found
......@@ -67,7 +67,7 @@ TerraSarCalibrationFunctor<TInput, TOutput>
// Evaluate
double nebn = 0.;
if ( !vnl_math_isnan(deltaTau) )
if ( !vnl_math_isnan(deltaTau) && coefficients.size() > 0 )
nebn = Horner (coefficients, deltaTau);
// Do not forget to multiply by the calibration factor
......@@ -85,7 +85,7 @@ double TerraSarCalibrationFunctor<TInput, TOutput>
double res = *(coefIt);
++coefIt;
while (coefIt != coefficients.rend())
while (coefIt < coefficients.rend())
{
// Cumulate polynomial
res = res * nebn + (*coefIt);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment