diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2020-05-20 15:17:10 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2020-05-21 00:50:41 +0100 |
commit | 619e7f46c9c760879409f9efaa4b3e798986538e (patch) | |
tree | db4455afa4766b65cff030d2d3d8b6ef85e932d2 /base/gspaint.c | |
parent | e27d7babcbbbee07fe9c458228d941ce3b4f8890 (diff) | |
download | ghostpdl-619e7f46c9c760879409f9efaa4b3e798986538e.tar.gz |
lgtm.com fixes: float * float -> double.
Make casting explicit. Ideally we'd cast one of the floats to a
double to start with, so the multiplication happens in doubles,
but that produces lots of diffs.
Diffstat (limited to 'base/gspaint.c')
-rw-r--r-- | base/gspaint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gspaint.c b/base/gspaint.c index d51431cd9..a4dc31d8b 100644 --- a/base/gspaint.c +++ b/base/gspaint.c @@ -497,7 +497,7 @@ do_stroke(gs_gstate * pgs) } gs_setlinewidth(pgs, new_width); scale_dash_pattern(pgs, scale); - gs_setflat(pgs, orig_flatness * scale); + gs_setflat(pgs, (double)(orig_flatness * scale)); /* * The alpha-buffer device requires that we fill the * entire path as a single unit. @@ -750,7 +750,7 @@ static int do_fill_stroke(gs_gstate *pgs, int rule, int *restart) goto out; gs_setlinewidth(pgs, new_width); scale_dash_pattern(pgs, scale); - gs_setflat(pgs, orig_flatness * scale); + gs_setflat(pgs, (double)(orig_flatness * scale)); pgs->log_op = orig_lop; } else acode = 0; |