diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2020-02-26 08:25:13 +0000 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2020-02-26 08:48:52 +0000 |
commit | ef5dfe7e3b3858bdfb20c168b4818c4d65fb932f (patch) | |
tree | baa2a6821abb0211142e68c95a3971955f9cd438 | |
parent | 29335f43967a0f089d6f2f37883a22f1516f7bde (diff) | |
download | ghostpdl-ef5dfe7e3b3858bdfb20c168b4818c4d65fb932f.tar.gz |
CID 354310: Remove pointless unsigned comparison with 0.
-rw-r--r-- | base/gxblend.c | 4 |
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; |