[gs-commits] ghostpdl branch, master, updated. jbig2dec-0.14-1565-g3eb2b13

[email protected] (Robin Watts)
Newsgroups gmane.comp.printing.ghostscript.cvs
Message-ID <[email protected]>
The ghostpdl branch, master has been updated
       via  3eb2b1337260a17274588d377032e1f9953062fd (commit)
      from  8b5af0e2db28be36d96de97eb1a145d5716ffea3 (commit)

----------------------------------------------------------------------
commit 3eb2b1337260a17274588d377032e1f9953062fd
Author: Robin Watts <[email protected]>
Date:   Mon Aug 12 13:53:29 2019 +0100

    Squash double -> int warning message with explicit cast.

diff --git a/base/gxblend.c b/base/gxblend.c
index 8d7b9aa..0e29fc9 100644
--- a/base/gxblend.c
+++ b/base/gxblend.c
@@ -4613,7 +4613,7 @@ template_mark_fill_rect(int w, int h, byte *gs_restrict dst_ptr, byte *gs_restri
                         } else if (dest_alpha != pdst[num_comp]) {
                             /* We need val_new = (val_old * old_alpha) / new_alpha */
                             if (pdst[num_comp] != 0) {
-                                int val = floor(((float)dest_alpha / (float)pdst[num_comp]) * (255 - pdst[k]) + 0.5);
+                                int val = (int)floor(((float)dest_alpha / (float)pdst[num_comp]) * (255 - pdst[k]) + 0.5);
                                 if (val < 0)
                                     val = 0;
                                 else if (val > 255)


Summary of changes:
 base/gxblend.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.