summaryrefslogtreecommitdiff
path: root/base/gxhtbit.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2020-05-15 11:48:07 +0100
committerRobin Watts <Robin.Watts@artifex.com>2020-05-15 11:49:33 +0100
commit2f768243df42031a3f37f256678e34c1ac97fdde (patch)
treef7ba9563a9f78828a319d497d821c88675ce9e06 /base/gxhtbit.c
parentb380ebb41878645d0d7bb2b07155667acac4fa99 (diff)
downloadghostpdl-2f768243df42031a3f37f256678e34c1ac97fdde.tar.gz
lgtm.com fixes: Multiplication of narrow type in wider context.
Diffstat (limited to 'base/gxhtbit.c')
-rw-r--r--base/gxhtbit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/gxhtbit.c b/base/gxhtbit.c
index 501fe8d3c..6cb6fdcb7 100644
--- a/base/gxhtbit.c
+++ b/base/gxhtbit.c
@@ -94,7 +94,7 @@ construct_ht_order_short(gx_ht_order *porder, const byte *thresholds)
phtr->elt_size == sizeof(ushort) &&
!memcmp(phtr->levels, levels, num_levels * sizeof(*levels)) &&
!memcmp(phtr->bit_data, porder->bit_data,
- size * phtr->elt_size)
+ (size_t)size * phtr->elt_size)
) {
/*
* This is a predefined halftone. Free the levels and