Skip to content

Commit

Permalink
Work around compilier complaining about std::min( long long, int )
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jul 18, 2021
1 parent 3fd4fe9 commit 091b93b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/pointcloud/qgspointcloudlayerrenderer.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 091b93b

Please sign in to comment.