Thu Jun 14 17:41:58 2018 UTC ()
gimp: Avoid ambiguous function call.


(jperkin)
diff -r1.92 -r1.93 pkgsrc/graphics/gimp/distinfo
diff -r0 -r1.1 pkgsrc/graphics/gimp/patches/patch-app_core_gimpbrush-transform.cc

cvs diff -r1.92 -r1.93 pkgsrc/graphics/gimp/distinfo (expand / switch to unified diff)

--- pkgsrc/graphics/gimp/distinfo 2018/05/27 13:46:45 1.92
+++ pkgsrc/graphics/gimp/distinfo 2018/06/14 17:41:58 1.93
@@ -1,10 +1,11 @@ @@ -1,10 +1,11 @@
1$NetBSD: distinfo,v 1.92 2018/05/27 13:46:45 wiz Exp $ 1$NetBSD: distinfo,v 1.93 2018/06/14 17:41:58 jperkin Exp $
2 2
3SHA1 (gimp-2.10.2.tar.bz2) = 97aae35f11675af7a055c8cb2073db72d88b7b88 3SHA1 (gimp-2.10.2.tar.bz2) = 97aae35f11675af7a055c8cb2073db72d88b7b88
4RMD160 (gimp-2.10.2.tar.bz2) = b095eedc575120714aeb28f5453b75cdacb6cd77 4RMD160 (gimp-2.10.2.tar.bz2) = b095eedc575120714aeb28f5453b75cdacb6cd77
5SHA512 (gimp-2.10.2.tar.bz2) = 6e351294e018a9f879993700355bdf5f10bccc6862604ae1950c4d235d32cdfcd6a0195b37377819adeef53ab3d24f32ed1de60cba6bafe58608ed0906a6fbcf 5SHA512 (gimp-2.10.2.tar.bz2) = 6e351294e018a9f879993700355bdf5f10bccc6862604ae1950c4d235d32cdfcd6a0195b37377819adeef53ab3d24f32ed1de60cba6bafe58608ed0906a6fbcf
6Size (gimp-2.10.2.tar.bz2) = 30863771 bytes 6Size (gimp-2.10.2.tar.bz2) = 30863771 bytes
7SHA1 (patch-aa) = 403c46d7070de208769e99e512922ba3a5b7129b 7SHA1 (patch-aa) = 403c46d7070de208769e99e512922ba3a5b7129b
8SHA1 (patch-ab) = 37820b9e03702248294f0030ffbd09e7f14f3dcb 8SHA1 (patch-ab) = 37820b9e03702248294f0030ffbd09e7f14f3dcb
 9SHA1 (patch-app_core_gimpbrush-transform.cc) = 2524948ed5b04ab2b50f169f5dfd5eba4aac4395
9SHA1 (patch-plug-ins_common_file-mng.c) = 8ed244997cdef7125e1aa5da4d0fac5068ad5159 10SHA1 (patch-plug-ins_common_file-mng.c) = 8ed244997cdef7125e1aa5da4d0fac5068ad5159
10SHA1 (patch-plug-ins_script-fu_script-fu-server.c) = c424b1a8e345ec3d0763ac2cf1f8535da9e10797 11SHA1 (patch-plug-ins_script-fu_script-fu-server.c) = c424b1a8e345ec3d0763ac2cf1f8535da9e10797

File Added: pkgsrc/graphics/gimp/patches/patch-app_core_gimpbrush-transform.cc
$NetBSD: patch-app_core_gimpbrush-transform.cc,v 1.1 2018/06/14 17:41:58 jperkin Exp $

Avoid ambiguous function call.

--- app/core/gimpbrush-transform.cc.orig	2018-04-26 13:26:41.000000000 +0000
+++ app/core/gimpbrush-transform.cc
@@ -147,7 +147,7 @@ gimp_brush_real_transform_mask (GimpBrus
    * rectangle.
    */
   const gint fraction_bits = 12;
-  const gint int_multiple  = pow (2, fraction_bits);
+  const gint int_multiple  = pow ((double)2, fraction_bits);
 
   /* In inner loop's bilinear calculation, two numbers that were each
    * previously multiplied by int_multiple are multiplied together.
@@ -169,7 +169,7 @@ gimp_brush_real_transform_mask (GimpBrus
    * 2^9     = 0010 0000 0000
    * 2^9 - 1 = 0001 1111 1111
    */
-  const guint fraction_bitmask = pow(2, fraction_bits) - 1 ;
+  const guint fraction_bitmask = pow((double)2, fraction_bits) - 1 ;
 
   source = gimp_brush_get_mask (brush);
 
@@ -447,7 +447,7 @@ gimp_brush_real_transform_pixmap (GimpBr
    * rectangle.
    */
   const gint fraction_bits = 12;
-  const gint int_multiple  = pow (2, fraction_bits);
+  const gint int_multiple  = pow ((double)2, fraction_bits);
 
   /* In inner loop's bilinear calculation, two numbers that were each
    * previously multiplied by int_multiple are multiplied together.
@@ -469,7 +469,7 @@ gimp_brush_real_transform_pixmap (GimpBr
    * 2^9     = 0010 0000 0000
    * 2^9 - 1 = 0001 1111 1111
    */
-  const guint fraction_bitmask = pow(2, fraction_bits) - 1 ;
+  const guint fraction_bitmask = pow((double)2, fraction_bits) - 1 ;
 
   source = gimp_brush_get_pixmap (brush);