summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--base/gxblend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gxblend.c b/base/gxblend.c
index 334f9717d..aa57f5904 100644
--- a/base/gxblend.c
+++ b/base/gxblend.c
@@ -2188,7 +2188,7 @@ art_pdf_recomposite_group_16(uint16_t *gs_restrict *dstp, uint16_t *gs_restrict
{
uint16_t dst_alpha;
int i;
- int tmp;
+ uint32_t tmp;
int scale;
uint16_t *gs_restrict dst = *dstp;
@@ -2241,7 +2241,7 @@ art_pdf_recomposite_group_16(uint16_t *gs_restrict *dstp, uint16_t *gs_restrict
tmp = (src_alpha_g * tmp + 0x8000)>>16;
src[n_chan] = tmp;
if (dst_alpha_g != NULL) {
- int d = *dst_alpha_g;
+ uint32_t d = *dst_alpha_g;
d += d>>15;
tmp = (0x10000 - d) * (0xffff - tmp) + 0x8000;
*dst_alpha_g = 0xffff - (tmp >> 16);