From 761510cbb870efe5b37cab10b9304710da08243d Mon Sep 17 00:00:00 2001 From: Victor Poughon <victor.poughon@cnes.fr> Date: Fri, 26 Apr 2019 16:44:21 +0200 Subject: [PATCH] BUG: fix radiometricindex assert --- Modules/Radiometry/Indices/include/otbRadiometricIndex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Radiometry/Indices/include/otbRadiometricIndex.h b/Modules/Radiometry/Indices/include/otbRadiometricIndex.h index d65213a2ec..15cdba6cad 100644 --- a/Modules/Radiometry/Indices/include/otbRadiometricIndex.h +++ b/Modules/Radiometry/Indices/include/otbRadiometricIndex.h @@ -194,7 +194,7 @@ protected: */ double Value(BandNameType band, const itk::VariableLengthVector<TInput>& input) const { - assert(m_RequiredBands[band] && "Retrieving value for a band that is not in the required bands list"); + assert(m_RequiredBands[static_cast<size_t>(band)] && "Retrieving value for a band that is not in the required bands list"); return static_cast<double>(input[UncheckedBandIndex(band) - 1]); } -- GitLab