summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2020-02-26 08:25:13 +0000
committerChris Liddell <chris.liddell@artifex.com>2020-02-26 08:48:52 +0000
commitef5dfe7e3b3858bdfb20c168b4818c4d65fb932f (patch)
treebaa2a6821abb0211142e68c95a3971955f9cd438
parent29335f43967a0f089d6f2f37883a22f1516f7bde (diff)
downloadghostpdl-ef5dfe7e3b3858bdfb20c168b4818c4d65fb932f.tar.gz
CID 354310: Remove pointless unsigned comparison with 0.
-rw-r--r--base/gxblend.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/base/gxblend.c b/base/gxblend.c
index aa57f5904..642a851d3 100644
--- a/base/gxblend.c
+++ b/base/gxblend.c
@@ -2227,10 +2227,6 @@ art_pdf_recomposite_group_16(uint16_t *gs_restrict *dstp, uint16_t *gs_restrict
/* RJW: Nasty that we have to resort to 64bit here, but we'll live with it. */
tmp64 = (si - di) * (int64_t)scale + 0x8000;
tmp = si + (tmp64 >> 16);
-
- /* todo: it should be possible to optimize these cond branches */
- if (tmp < 0)
- tmp = 0;
if (tmp > 65535)
tmp = 65535;
src[i] = tmp;