Skip to content

Commit

Permalink
[afs] Work around compiler complaining about std::min type mismatch o…
Browse files Browse the repository at this point in the history
…n qt6
  • Loading branch information
nirvn committed Jul 18, 2021
1 parent 091b93b commit 744ef3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/arcgisrest/qgsafsshareddata.cpp
Expand Up @@ -38,7 +38,7 @@ bool QgsAfsSharedData::getFeature( QgsFeatureId id, QgsFeature &f, const QgsRect

// Fetch 100 features at the time
int startId = ( id / 100 ) * 100;
int stopId = std::min( startId + 100, mObjectIds.length() );
int stopId = std::min< size_t >( startId + 100, mObjectIds.length() );
QList<quint32> objectIds;
objectIds.reserve( stopId );
for ( int i = startId; i < stopId; ++i )
Expand Down

0 comments on commit 744ef3f

Please sign in to comment.