diff options
author | Marcos H. Woehrmann <marcos.woehrmann@artifex.com> | 2007-12-14 18:40:31 +0000 |
---|---|---|
committer | Marcos H. Woehrmann <marcos.woehrmann@artifex.com> | 2007-12-14 18:40:31 +0000 |
commit | 89fb95ee77025005ca123d8fb39e47652b7505f0 (patch) | |
tree | 15fdeb5c6c26c52c6f8786962ff9cd5af2496bd3 /gs/contrib | |
parent | eacb9e98581131eacdee13a4941c239e733f4361 (diff) |
Added casts to sprintf debugging statements (thanks for Michael Rutter for finding these).
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8441 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/contrib')
-rw-r--r-- | gs/contrib/eplaser/gdevescv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gs/contrib/eplaser/gdevescv.c b/gs/contrib/eplaser/gdevescv.c index 71b252d36..f68129f02 100644 --- a/gs/contrib/eplaser/gdevescv.c +++ b/gs/contrib/eplaser/gdevescv.c @@ -1552,7 +1552,7 @@ escv_setdash(gx_device_vector * vdev, const float *pattern, uint count, floatp o (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 @@ escv_setdash(gx_device_vector * vdev, const float *pattern, uint count, floatp o (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); } |