Fix msvc build error

This commit is contained in:
Christoph Gohlke 2014-09-21 16:48:35 -07:00
parent 91588383e7
commit f3e3af6686

View File

@ -221,9 +221,10 @@ int ImagingLibTiffDecode(Imaging im, ImagingCodecState state, UINT8* buffer, int
}
if (clientstate->ifd){
unsigned int ifdoffset = clientstate->ifd;
int rv;
unsigned int ifdoffset = clientstate->ifd;
TRACE(("reading tiff ifd %d\n", ifdoffset));
int rv = TIFFSetSubDirectory(tiff, ifdoffset);
rv = TIFFSetSubDirectory(tiff, ifdoffset);
if (!rv){
TRACE(("error in TIFFSetSubDirectory"));
return -1;