Navigation Menu

Skip to content

Commit

Permalink
Fix type conversion in debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 20, 2021
1 parent c44e328 commit 6e5d191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/raster/qgsrasterinterface.cpp
Expand Up @@ -510,7 +510,7 @@ QgsRasterHistogram QgsRasterInterface::histogram( int bandNo,

#ifdef QGISDEBUG
QString hist;
for ( int i = 0; i < std::min( myHistogram.histogramVector.size(), 500 ); i++ )
for ( std::size_t i = 0; i < std::min< std::size_t >( myHistogram.histogramVector.size(), 500 ); i++ )
{
hist += QString::number( myHistogram.histogramVector.value( i ) ) + ' ';
}
Expand Down

0 comments on commit 6e5d191

Please sign in to comment.