tif_dirwrite.c: fix other warnings related to 6df997c786 changes

This commit is contained in:
Even Rouault 2020-02-27 22:02:58 +01:00
parent 721120d0d7
commit 388a1dba72
No known key found for this signature in database
GPG Key ID: 33EBBFC47B3DD87D

View File

@ -2839,7 +2839,7 @@ void DoubleToRational(double value, uint32 *num, uint32 *denom)
return; return;
} }
/*-- Check for easy integer numbers -- */ /*-- Check for easy integer numbers -- */
if (value == (unsigned long)(value)) { if (value == (uint32)(value)) {
*num = (uint32)value; *num = (uint32)value;
*denom = 1; *denom = 1;
return; return;
@ -2903,8 +2903,8 @@ void DoubleToSrational(double value, int32 *num, int32 *denom)
return; return;
} }
/*-- Check for easy numbers -- */ /*-- Check for easy numbers -- */
if (value == (long)(value)) { if (value == (uint32)(value)) {
*num = (long)value; *num = (uint32)value;
*denom = 1; *denom = 1;
return; return;
} }