[gs-cvs] rev 8441 - trunk/gs/contrib/eplaser
marcos at ghostscript.com
marcos at ghostscript.com
Fri Dec 14 10:40:32 PST 2007
Author: marcos
Date: 2007-12-14 10:40:31 -0800 (Fri, 14 Dec 2007)
New Revision: 8441
Modified:
trunk/gs/contrib/eplaser/gdevescv.c
Log:
Added casts to sprintf debugging statements (thanks for Michael Rutter for finding these).
Modified: trunk/gs/contrib/eplaser/gdevescv.c
===================================================================
--- trunk/gs/contrib/eplaser/gdevescv.c 2007-12-14 18:31:39 UTC (rev 8440)
+++ trunk/gs/contrib/eplaser/gdevescv.c 2007-12-14 18:40:31 UTC (rev 8441)
@@ -1552,7 +1552,7 @@
(int)(pattern[0] * scale / vdev->x_pixels_per_inch + 0.5),
(int)(pattern[0] * scale / vdev->x_pixels_per_inch + 0.5));
#else
- (void)sprintf(obuf, ESC_GS "1;%d;%ddlG", pattern[0], pattern[0]);
+ (void)sprintf(obuf, ESC_GS "1;%d;%ddlG", (int) pattern[0], (int) pattern[0]);
#endif
lputs(s, obuf);
} else {
@@ -1567,7 +1567,7 @@
(void)sprintf(obuf, ";%d", (int)(pattern[i] * scale / vdev->x_pixels_per_inch + 0.5));
#else
- (void)sprintf(obuf, ";%d", pattern[i]);
+ (void)sprintf(obuf, ";%d", (int) pattern[i]);
#endif
lputs(s, obuf);
}
More information about the gs-cvs
mailing list