mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Removed a lot of size_t/uint/int related compiler warnings. Still more to go.
p4#: 20215
This commit is contained in:
@@ -486,7 +486,7 @@ ScalarMapperEffectGenerator::addAlphaAndUndefStripes(const cvf::TextureImage* te
|
||||
modTexImg->allocate(texImg->width(), texImg->height() + 2);
|
||||
modTexImg->fill(cvf::Color4ub(cvf::Color3ub(undefScalarColor), 255)); // Undefined color
|
||||
|
||||
for (size_t i = 0 ; i < texImg->width(); ++i)
|
||||
for (cvf::uint i = 0 ; i < texImg->width(); ++i)
|
||||
{
|
||||
cvf::Color4ub legendColor = texImg->pixel(i, 0);
|
||||
modTexImg->setPixel(i, 0, legendColor);
|
||||
|
||||
@@ -255,7 +255,7 @@ ref<UIntArray> StructGridGeometryGenerator::lineIndicesFromQuadVertexArray(const
|
||||
CVF_ASSERT(vertexArray);
|
||||
|
||||
size_t numVertices = vertexArray->size();
|
||||
int numQuads = numVertices/4;
|
||||
int numQuads = static_cast<int>(numVertices/4);
|
||||
CVF_ASSERT(numVertices%4 == 0);
|
||||
|
||||
ref<UIntArray> indices = new UIntArray;
|
||||
|
||||
Reference in New Issue
Block a user