diff --git a/src/ExternLib/GetClbInfo/GetClbInfo.hh b/src/ExternLib/GetClbInfo/GetClbInfo.hh index fbabde6..6f3c35a 100644 --- a/src/ExternLib/GetClbInfo/GetClbInfo.hh +++ b/src/ExternLib/GetClbInfo/GetClbInfo.hh @@ -109,8 +109,8 @@ public: ElementType value = _paramInput.getDataList()[index]; std::vector calib; calib.resize(_maxSize, std::nan("")); - int clb_index = (int)floor(value); - if (!isNAN(value) && (clb_index >= 0) && (clb_index < _calibrationInfoList.size())) { + unsigned int clb_index = (unsigned int)floor(value); + if (!isNAN(value) && (_calibrationInfoList.find(clb_index) != _calibrationInfoList.end())) { Parameter::InfoValues* info = _calibrationInfoList[clb_index]; if (info != NULL) { -- libgit2 0.21.2