Skip to content
Permalink
Browse files

size_t is 8, int is 4 on amd64

  • Loading branch information
homann committed Sep 13, 2012
1 parent 6b228c9 commit 35f7a1cc90a780a1375577fdbcc7988aa785a14c
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/wms/qgswmsprovider.cpp
@@ -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" ) );

0 comments on commit 35f7a1c

Please sign in to comment.
You can’t perform that action at this time.