Skip to content
Permalink
Browse files
Fix type conversion in debug code
  • Loading branch information
nyalldawson committed Jul 20, 2021
1 parent c44e328 commit 6e5d1914702ad3414082861a5bcd4f98b674afde
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/raster/qgsrasterinterface.cpp
@@ -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 ) ) + ' ';
}

0 comments on commit 6e5d191

Please sign in to comment.