tif_dirwrite.c: fix other warnings related to 6df997c786
changes
This commit is contained in:
parent
721120d0d7
commit
388a1dba72
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user