mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Linux fixes
This commit is contained in:
parent
021de1444d
commit
10046eed4a
@ -79,7 +79,7 @@ QList<caf::PdmOptionItemInfo> RicLinkVisibleViewsFeatureUi::calculateValueOption
|
||||
|
||||
if (fieldNeedingOptions == &m_masterView)
|
||||
{
|
||||
for (int i = 0; i < m_allViews.size(); i++)
|
||||
for (size_t i = 0; i < m_allViews.size(); i++)
|
||||
{
|
||||
RimCase* rimCase = NULL;
|
||||
m_allViews[i]->firstAnchestorOrThisOfType(rimCase);
|
||||
|
@ -246,7 +246,7 @@ void RivGeoMechVizLogic::calculateCurrentTotalCellVisibility(cvf::UByteArray* to
|
||||
if (gridCount == 0) return;
|
||||
|
||||
RigFemPart* part = m_geomechView->geoMechCase()->geoMechData()->femParts()->part(0);
|
||||
size_t elmCount = part->elementCount();
|
||||
int elmCount = part->elementCount();
|
||||
|
||||
totalVisibility->resize(elmCount);
|
||||
totalVisibility->setAll(false);
|
||||
|
@ -21,9 +21,9 @@ TEST(RimWellLogExtractionCurveImplTest, StripOffInvalidValAtEndsOfVector)
|
||||
std::vector< std::pair<size_t, size_t> > valuesIntervals;
|
||||
RimWellLogCurveImpl::calculateIntervalsOfValidValues(values, valuesIntervals);
|
||||
|
||||
EXPECT_EQ(1, valuesIntervals.size());
|
||||
EXPECT_EQ(2, valuesIntervals[0].first);
|
||||
EXPECT_EQ(4, valuesIntervals[0].second);
|
||||
EXPECT_EQ(1, static_cast<int>(valuesIntervals.size()));
|
||||
EXPECT_EQ(2, static_cast<int>(valuesIntervals[0].first));
|
||||
EXPECT_EQ(4, static_cast<int>(valuesIntervals[0].second));
|
||||
}
|
||||
|
||||
|
||||
|
@ -83,7 +83,7 @@ void RimWellLogCurveImpl::calculateIntervalsOfValidValues(const std::vector<doub
|
||||
vIdx++;
|
||||
}
|
||||
|
||||
if (startIdx >= 0 && startIdx < valueCount)
|
||||
if (startIdx >= 0 && startIdx < ((int)valueCount))
|
||||
{
|
||||
intervals.push_back(std::make_pair(startIdx, valueCount - 1));
|
||||
}
|
||||
|
@ -231,7 +231,7 @@ PdmObjectHandle* PdmReferenceHelper::objectFromReferenceStringList(PdmObjectHand
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (index > childObjects.size() - 1)
|
||||
if (index < 0 || index > ((int)childObjects.size()) - 1)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
2
ThirdParty/NRLib/nrlib/well/well.hpp
vendored
2
ThirdParty/NRLib/nrlib/well/well.hpp
vendored
@ -155,7 +155,7 @@ namespace NRLib {
|
||||
|
||||
virtual const std::map<int, std::string> GetDiscNames(const std::string& log_name) const;
|
||||
|
||||
const unsigned int GetNumberOfNonMissingData() const {return n_data_nonmissing_ ;}
|
||||
unsigned int GetNumberOfNonMissingData() const {return n_data_nonmissing_ ;}
|
||||
|
||||
void SetUseForBackgroundTrend(int use_for_background_trend) { use_for_background_trend_ = use_for_background_trend ;}
|
||||
void SetUseForFiltering(int use_for_filtering) { use_for_filtering_ = use_for_filtering ;}
|
||||
|
Loading…
Reference in New Issue
Block a user