Fix compiler warnings

This commit is contained in:
Jacob Støren committed 2018-06-15 14:47:42 +02:00
1 parent ee195e909b
commit ecd8f7cfd8
2 files changed
+3 -3

No files matched your search

@@ -99,7 +99,7 @@ bool RiaStdStringTools::startsWithAlphabetic(const std::string& s)
{
if (s.empty()) return false;
return isalpha(s[0]);
return isalpha(s[0]) != 0;
}
//--------------------------------------------------------------------------------------------------
@@ -183,8 +183,8 @@ void RigFemPart::calculateElmNeighbors()
// The candidates are sorted from smallest to largest, so we do a linear search to find the
// (two) common cells in the two arrays, and leaving this element out, we have one candidate left
int idx1 = 0;
int idx2 = 0;
size_t idx1 = 0;
size_t idx2 = 0;
while (idx1 < candidates1.size() && idx2 < candidates2.size())
{