diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2020-05-15 11:48:07 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2020-05-15 11:49:33 +0100 |
commit | 2f768243df42031a3f37f256678e34c1ac97fdde (patch) | |
tree | f7ba9563a9f78828a319d497d821c88675ce9e06 /base/gsicc_monitorcm.c | |
parent | b380ebb41878645d0d7bb2b07155667acac4fa99 (diff) | |
download | ghostpdl-2f768243df42031a3f37f256678e34c1ac97fdde.tar.gz |
lgtm.com fixes: Multiplication of narrow type in wider context.
Diffstat (limited to 'base/gsicc_monitorcm.c')
-rw-r--r-- | base/gsicc_monitorcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/gsicc_monitorcm.c b/base/gsicc_monitorcm.c index f621c01a6..2e305e9de 100644 --- a/base/gsicc_monitorcm.c +++ b/base/gsicc_monitorcm.c @@ -264,7 +264,7 @@ gsicc_mcm_transform_general(gx_device *dev, gsicc_link_t *icclink, if (icclink->hashcode.des_hash == icclink->hashcode.src_hash) { if (num_bytes_in == num_bytes_out) { /* The easy case */ - memcpy(outputcolor, inputcolor, num_bytes_in * icclink->num_input); + memcpy(outputcolor, inputcolor, (size_t)num_bytes_in * icclink->num_input); } else { if (num_bytes_in == 2) { unsigned short *in_ptr = (unsigned short*) inputcolor; |