pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/gimp gimp: Avoid ambiguous function call.
details: https://anonhg.NetBSD.org/pkgsrc/rev/0813cfe9734b
branches: trunk
changeset: 381693:0813cfe9734b
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Thu Jun 14 17:41:58 2018 +0000
description:
gimp: Avoid ambiguous function call.
diffstat:
graphics/gimp/distinfo | 3 +-
graphics/gimp/patches/patch-app_core_gimpbrush-transform.cc | 42 +++++++++++++
2 files changed, 44 insertions(+), 1 deletions(-)
diffs (62 lines):
diff -r 0a33631053b0 -r 0813cfe9734b graphics/gimp/distinfo
--- a/graphics/gimp/distinfo Thu Jun 14 16:25:52 2018 +0000
+++ b/graphics/gimp/distinfo Thu Jun 14 17:41:58 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.92 2018/05/27 13:46:45 wiz Exp $
+$NetBSD: distinfo,v 1.93 2018/06/14 17:41:58 jperkin Exp $
SHA1 (gimp-2.10.2.tar.bz2) = 97aae35f11675af7a055c8cb2073db72d88b7b88
RMD160 (gimp-2.10.2.tar.bz2) = b095eedc575120714aeb28f5453b75cdacb6cd77
@@ -6,5 +6,6 @@
Size (gimp-2.10.2.tar.bz2) = 30863771 bytes
SHA1 (patch-aa) = 403c46d7070de208769e99e512922ba3a5b7129b
SHA1 (patch-ab) = 37820b9e03702248294f0030ffbd09e7f14f3dcb
+SHA1 (patch-app_core_gimpbrush-transform.cc) = 2524948ed5b04ab2b50f169f5dfd5eba4aac4395
SHA1 (patch-plug-ins_common_file-mng.c) = 8ed244997cdef7125e1aa5da4d0fac5068ad5159
SHA1 (patch-plug-ins_script-fu_script-fu-server.c) = c424b1a8e345ec3d0763ac2cf1f8535da9e10797
diff -r 0a33631053b0 -r 0813cfe9734b graphics/gimp/patches/patch-app_core_gimpbrush-transform.cc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/gimp/patches/patch-app_core_gimpbrush-transform.cc Thu Jun 14 17:41:58 2018 +0000
@@ -0,0 +1,42 @@
+$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);
+
Home |
Main Index |
Thread Index |
Old Index