/* Fetch a rational item from the file at offset off and return the value as a floating point number.  */
static float TIFFFetchRational(TIFF *, TIFFDirEntry *)
/* Fetch a rational item from the file at offset off and return the value as a floating point number.  */
static float TIFFFetchRational(TIFF *, TIFFDirEntry *)
{
	uint32 l[2];
	float v;
	return (!TIFFFetchData(tif, dir, (char *)l) ||
	    !cvtRational(tif, dir, l[0], l[1], &v) ? 1.0f : v);
}