X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7beb59f36c016d27cf8949eb8c0d38fc63ad536a..0281278534339322516fa6133ed4df925c2156be:/src/common/imagtiff.cpp diff --git a/src/common/imagtiff.cpp b/src/common/imagtiff.cpp index 6a4e3d3bce..3cd681f757 100644 --- a/src/common/imagtiff.cpp +++ b/src/common/imagtiff.cpp @@ -89,7 +89,7 @@ _tiffSeekIProc(thandle_t handle, toff_t off, int whence) default: mode = wxFromCurrent; break; } - return (toff_t)stream->SeekI( (off_t)off, mode ); + return (toff_t)stream->SeekI( (wxFileOffset)off, mode ); } toff_t TIFFLINKAGEMODE @@ -105,7 +105,7 @@ _tiffSeekOProc(thandle_t handle, toff_t off, int whence) default: mode = wxFromCurrent; break; } - return (toff_t)stream->SeekO( (off_t)off, mode ); + return (toff_t)stream->SeekO( (wxFileOffset)off, mode ); } int TIFFLINKAGEMODE @@ -398,7 +398,7 @@ bool wxTIFFHandler::DoCanRead( wxInputStream& stream ) { unsigned char hdr[2]; - if ( !stream.Read(&hdr, WXSIZEOF(hdr)) ) + if ( !stream.Read(&hdr[0], WXSIZEOF(hdr)) ) return false; return (hdr[0] == 'I' && hdr[1] == 'I') ||