mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 15:26:48 -06:00
Fix two compiler warnings
This commit is contained in:
parent
70a41709cf
commit
a24ce670cf
@ -73,7 +73,7 @@ void RifColumnBasedRsmspecParser::parseData(const QString& data)
|
||||
|
||||
for (size_t i = 0; i < columnCount; i++)
|
||||
{
|
||||
double entry = entries.at(i).toDouble();
|
||||
double entry = entries.at(static_cast<int>(i)).toDouble();
|
||||
table[i].values.push_back(entry);
|
||||
}
|
||||
} while (std::getline(streamData, line));
|
||||
|
@ -220,7 +220,6 @@ TEST(RifRsmspecParserToolsTest, TestSplitLineToDoubles)
|
||||
out << " 9 0.0 0.0 0.0 0.0 0.0\n";
|
||||
out << " 10 0.0 0.0 0.0 0.0 0.0\n";
|
||||
|
||||
RifRsmspecParserTools parserTool;
|
||||
std::stringstream streamData;
|
||||
streamData.str(data.toStdString());
|
||||
std::string line;
|
||||
@ -230,7 +229,7 @@ TEST(RifRsmspecParserToolsTest, TestSplitLineToDoubles)
|
||||
while (std::getline(streamData, line))
|
||||
{
|
||||
std::vector<double> values;
|
||||
parserTool.splitLineToDoubles(line, values);
|
||||
RifRsmspecParserTools::splitLineToDoubles(line, values);
|
||||
table.push_back(values);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user