Skip to content

Commit

Permalink
fix int/size_t comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec authored and nyalldawson committed Oct 25, 2020
1 parent 477e250 commit c853b2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/mesh/qgsmeshlayer.cpp
Expand Up @@ -271,7 +271,7 @@ QgsTriangularMesh *QgsMeshLayer::triangularMeshByLodIndex( int lodIndex ) const
if ( lodIndex < 0 )
return mTriangularMeshes.front().get();

if ( lodIndex >= mTriangularMeshes.size() )
if ( lodIndex >= int( mTriangularMeshes.size() ) )
return mTriangularMeshes.back().get();

return mTriangularMeshes.at( lodIndex ).get();
Expand Down

0 comments on commit c853b2c

Please sign in to comment.