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);
|
||||
if (err!=TIFFReadDirEntryErrOk)
|
||||
return(err);
|
||||
if ((m > FLT_MAX) || (m < FLT_MIN))
|
||||
if ((m > FLT_MAX) || (m < -FLT_MAX))
|
||||
return(TIFFReadDirEntryErrRange);
|
||||
*value=(float)m;
|
||||
return(TIFFReadDirEntryErrOk);
|
||||
|
Loading…
Reference in New Issue
Block a user