avoid warnings on MSVC (bug 2427)
This commit is contained in:
parent
46618e9d97
commit
f6bca3f994
@ -1,3 +1,8 @@
|
||||
2013-01-18 Frank Warmerdam <warmerdam@google.com>
|
||||
|
||||
* libtiff/tif_read.c: uint64/tmsize_t change for MSVC warnings.
|
||||
http://bugzilla.maptools.org/show_bug.cgi?id=2427
|
||||
|
||||
2012-12-20 Tom Lane <tgl@sss.pgh.pa.us>
|
||||
|
||||
* test/raw_decode.c: Relax raw_decode's pixel-value checks so that
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: tif_read.c,v 1.41 2012-07-06 19:22:58 bfriesen Exp $ */
|
||||
/* $Id: tif_read.c,v 1.42 2013-01-18 21:37:13 fwarmerdam Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988-1997 Sam Leffler
|
||||
@ -47,7 +47,7 @@ TIFFFillStripPartial( TIFF *tif, int strip, tmsize_t read_ahead, int restart )
|
||||
{
|
||||
static const char module[] = "TIFFFillStripPartial";
|
||||
register TIFFDirectory *td = &tif->tif_dir;
|
||||
uint64 unused_data;
|
||||
tmsize_t unused_data;
|
||||
uint64 read_offset;
|
||||
tmsize_t cc, to_read;
|
||||
/* tmsize_t bytecountm; */
|
||||
@ -117,7 +117,7 @@ TIFFFillStripPartial( TIFF *tif, int strip, tmsize_t read_ahead, int restart )
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user