Fix a couple of build warnings on Linux

This commit is contained in:
Bjørn Erik Jensen 2018-10-09 08:19:16 +02:00
parent f16ad3d3dc
commit c0bf63ea95
2 changed files with 4 additions and 4 deletions

View File

@ -233,11 +233,11 @@ void RicExportCarfinForCompletionsFeature::onActionTriggered(bool isChecked)
std::vector<double> lgrValues; std::vector<double> lgrValues;
for (int k = 0; k < lgrCellCounts.k(); k++) for (size_t k = 0; k < lgrCellCounts.k(); k++)
{ {
for (int j = 0; j < lgrCellCounts.j(); j++) for (size_t j = 0; j < lgrCellCounts.j(); j++)
{ {
for (int i = 0; i < lgrCellCounts.i(); i++) for (size_t i = 0; i < lgrCellCounts.i(); i++)
{ {
lgrValues.push_back(poro); lgrValues.push_back(poro);
} }

View File

@ -190,7 +190,7 @@ void RifEclipseDataTableFormatter::addValueTable(QTextStream& stream, const QStr
subFormatter.header(cols); subFormatter.header(cols);
int colCount = 0; int colCount = 0;
for (int i = 0; i < values.size(); i++) for (size_t i = 0; i < values.size(); i++)
{ {
subFormatter.add(values[i]); subFormatter.add(values[i]);
if (++colCount % columns == 0 && i < values.size() - 1) subFormatter.rowCompleted(""); if (++colCount % columns == 0 && i < values.size() - 1) subFormatter.rowCompleted("");