Skip to content

Commit

Permalink
size_t is 8, int is 4 on amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
homann committed Sep 13, 2012
1 parent 6b228c9 commit 35f7a1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -959,8 +959,8 @@ void QgsWmsProvider::readBlock( int bandNo, QgsRectangle const & viewExtent, in
return;
}
QgsDebugMsg( QString( "image height = %1 bytesPerLine = %2" ).arg( image->height() ) . arg( image->bytesPerLine() ) ) ;
int myExpectedSize = pixelWidth * pixelHeight * 4;
int myImageSize = image->height() * image->bytesPerLine();
size_t myExpectedSize = pixelWidth * pixelHeight * 4;
size_t myImageSize = image->height() * image->bytesPerLine();
if ( myExpectedSize != myImageSize ) // should not happen
{
QgsMessageLog::logMessage( tr( "unexpected image size" ), tr( "WMS" ) );
Expand Down

0 comments on commit 35f7a1c

Please sign in to comment.