Commit 8bb51bf5b125cb9102db74d6adc652209f973c6c

Authored by Myriam Bouchemit
1 parent dadb4296
Exists in master

Fix bug in GetClbInfo process

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/ExternLib/GetClbInfo/GetClbInfo.hh
... ... @@ -109,8 +109,8 @@ public:
109 109 ElementType value = _paramInput.getDataList()[index];
110 110 std::vector<double> calib;
111 111 calib.resize(_maxSize, std::nan(""));
112   - int clb_index = (int)floor(value);
113   - if (!isNAN(value) && (clb_index >= 0) && (clb_index < _calibrationInfoList.size())) {
  112 + unsigned int clb_index = (unsigned int)floor(value);
  113 + if (!isNAN(value) && (_calibrationInfoList.find(clb_index) != _calibrationInfoList.end())) {
114 114 Parameter::InfoValues* info = _calibrationInfoList[clb_index];
115 115  
116 116 if (info != NULL) {
... ...