]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagtiff.cpp
implement new wxBG_STYLE_XXX semantics for wxMSW too
[wxWidgets.git] / src / common / imagtiff.cpp
index 0df1139d8f87aaf4bb6549764168edf5da9a982c..2b48f30b6df8ae0b5958b738cb94dfb8d30eda8d 100644 (file)
@@ -301,7 +301,7 @@ bool wxTIFFHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbos
 
     // guard against integer overflow during multiplication which could result
     // in allocating a too small buffer and then overflowing it
-    const double bytesNeeded = w * h * sizeof(uint32);
+    const double bytesNeeded = (double)w * (double)h * sizeof(uint32);
     if ( bytesNeeded >= wxUINT32_MAX )
     {
         if ( verbose )