diff --git a/Modules/Radiometry/Indices/include/otbRadiometricIndex.h b/Modules/Radiometry/Indices/include/otbRadiometricIndex.h index d65213a2ec63b3a6d40e575b01b5f29b5847e53c..15cdba6cade2b34deeda96c9ac8df401d7652992 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]); }