Fix comparison for max negative float value.
This commit is contained in:
parent
7b840002c1
commit
c0e310bc3f
@ -639,7 +639,7 @@ static enum TIFFReadDirEntryErr TIFFReadDirEntryFloat(TIFF* tif, TIFFDirEntry* d
|
|||||||
err=TIFFReadDirEntryCheckedDouble(tif,direntry,&m);
|
err=TIFFReadDirEntryCheckedDouble(tif,direntry,&m);
|
||||||
if (err!=TIFFReadDirEntryErrOk)
|
if (err!=TIFFReadDirEntryErrOk)
|
||||||
return(err);
|
return(err);
|
||||||
if ((m > FLT_MAX) || (m < FLT_MIN))
|
if ((m > FLT_MAX) || (m < -FLT_MAX))
|
||||||
return(TIFFReadDirEntryErrRange);
|
return(TIFFReadDirEntryErrRange);
|
||||||
*value=(float)m;
|
*value=(float)m;
|
||||||
return(TIFFReadDirEntryErrOk);
|
return(TIFFReadDirEntryErrOk);
|
||||||
|
Loading…
Reference in New Issue
Block a user