Fixed Linux comiler warnings

This commit is contained in:
Jacob Støren
2017-01-10 08:48:58 +01:00
parent 95b7ce73ee
commit 396069ae28
2 changed files with 4 additions and 4 deletions

View File

@@ -265,11 +265,11 @@ std::vector<double>* RigFlowDiagResults::calculateTracerWithMaxFractionResult(co
int selTracerIdx = 0;
for ( const std::string& tracerName: resVarAddr.selectedTracerNames )
{
for ( int globIdx = 0; globIdx < allTracerNames.size(); ++globIdx )
for ( size_t globIdx = 0; globIdx < allTracerNames.size(); ++globIdx )
{
if ( allTracerNames[globIdx].toStdString() == tracerName )
{
selectedTracerIdxToGlobalTracerIdx[selTracerIdx] = globIdx;
selectedTracerIdxToGlobalTracerIdx[selTracerIdx] = static_cast<int>(globIdx);
break;
}
}