Skip to content
Permalink
Browse files
Work around compilier complaining about std::min( long long, int )
  • Loading branch information
nirvn committed Jul 18, 2021
1 parent 3fd4fe9 commit 091b93b89e6e2cf1c29aede691c42c63b36443c6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/pointcloud/qgspointcloudlayerrenderer.cpp
@@ -259,7 +259,7 @@ int QgsPointCloudLayerRenderer::renderNodesAsync( const QVector<IndexedPointClou
if ( context.feedback() && context.feedback()->isCanceled() )
break;
// Async loading of nodes
const int currentGroupSize = std::min( std::max( nodes.size() - groupIndex, 0 ), groupSize );
const int currentGroupSize = std::min< size_t >( std::max< size_t >( nodes.size() - groupIndex, 0 ), groupSize );
QVector<QgsPointCloudBlockRequest *> blockRequests( currentGroupSize, nullptr );
QVector<bool> finishedLoadingBlock( currentGroupSize, false );
QEventLoop loop;

0 comments on commit 091b93b

Please sign in to comment.