Description: Fix treat TIFFSetField as floating point
 Partial fix for bug #691172: The tiff resolution tags are floating
 point values and need to be passed as such to TIFFSetField.
Origin: http://svn.ghostscript.com/viewvc?view=rev&revision=10925
Author: larsu@ghostscript.com
Bug: http://bugs.ghostscript.com/show_bug.cgi?id=691172
Forwarded: yes
Last-Update: 2010-03-15
--- a/base/gdevtifs.c
+++ b/base/gdevtifs.c
@@ -243,8 +243,8 @@
     TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
 
     TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH);
-    TIFFSetField(tif, TIFFTAG_XRESOLUTION, pdev->x_pixels_per_inch);
-    TIFFSetField(tif, TIFFTAG_YRESOLUTION, pdev->y_pixels_per_inch);
+    TIFFSetField(tif, TIFFTAG_XRESOLUTION, (float)pdev->x_pixels_per_inch);
+    TIFFSetField(tif, TIFFTAG_YRESOLUTION, (float)pdev->y_pixels_per_inch);
 
     {
 	char revs[10];
