summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d4ca3c5)
Avoid MSVC C4244 warnings due to implicit casts between 64 and 32 bit
integers.
This patch was also submitted to libtiff via
http://bugzilla.maptools.org/show_bug.cgi?id=2427
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73388
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
static const char module[] = "TIFFFillStripPartial";
register TIFFDirectory *td = &tif->tif_dir;
{
static const char module[] = "TIFFFillStripPartial";
register TIFFDirectory *td = &tif->tif_dir;
uint64 read_offset;
tmsize_t cc, to_read;
/* tmsize_t bytecountm; */
uint64 read_offset;
tmsize_t cc, to_read;
/* tmsize_t bytecountm; */
if( (uint64) to_read > td->td_stripbytecount[strip]
- tif->tif_rawdataoff - tif->tif_rawdataloaded )
{
if( (uint64) to_read > td->td_stripbytecount[strip]
- tif->tif_rawdataoff - tif->tif_rawdataloaded )
{
- to_read = td->td_stripbytecount[strip]
+ to_read = (tmsize_t)td->td_stripbytecount[strip]
- tif->tif_rawdataoff - tif->tif_rawdataloaded;
}
- tif->tif_rawdataoff - tif->tif_rawdataloaded;
}