summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2017-09-05 15:21:23 +0100
committerChris Liddell <chris.liddell@artifex.com>2017-09-05 15:29:42 +0100
commit1b9ea22b3456a24e356d3f5a68036cecbb28af56 (patch)
treebc44de3de8bb1443a978defb6b3db37d49c5fb8a
parent28e95004b508a3f4cd73552d92f7f4cd699c645b (diff)
downloadghostpdl-1b9ea22b3456a24e356d3f5a68036cecbb28af56.tar.gz
Coverity ID# 126580
Explicitly promote an unsigned char value to a long.
-rw-r--r--base/gxclrect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/gxclrect.c b/base/gxclrect.c
index 75e3b37af..18e9acf6e 100644
--- a/base/gxclrect.c
+++ b/base/gxclrect.c
@@ -1003,7 +1003,7 @@ clist_copy_planes(gx_device * dev,
}
/* 0x100 fudge is arbitrary, but the BufferSpace is large w.r.t. cbuf size so it doesn't matter */
- if ((cdev->cend - cdev->cnext) < 0x100 + (re.height * bytes_row * cdev->color_info.num_components))
+ if ((cdev->cend - cdev->cnext) < 0x100 + (re.height * bytes_row * (long)cdev->color_info.num_components))
cmd_write_buffer(cdev, cmd_opv_end_run); /* Insure that all planes fit in the bufferspace */
rect.x = rx, rect.y = re.y;