pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/bouml Fixed ambiguous function call with sunpro.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c4465c6cf5e9
branches:  trunk
changeset: 537679:c4465c6cf5e9
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Jan 13 22:36:29 2008 +0000

description:
Fixed ambiguous function call with sunpro.

diffstat:

 devel/bouml/distinfo         |   3 ++-
 devel/bouml/patches/patch-ab |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 1a1ba15b374f -r c4465c6cf5e9 devel/bouml/distinfo
--- a/devel/bouml/distinfo      Sun Jan 13 22:31:25 2008 +0000
+++ b/devel/bouml/distinfo      Sun Jan 13 22:36:29 2008 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2007/06/05 05:56:42 rillig Exp $
+$NetBSD: distinfo,v 1.2 2008/01/13 22:36:29 rillig Exp $
 
 SHA1 (bouml_2.27.tar.gz) = 88d8100e460512117477194cbf15112ca4617ec3
 RMD160 (bouml_2.27.tar.gz) = d86e9b8db713424e2bd2f3ab3f04471195cc664f
 Size (bouml_2.27.tar.gz) = 3872944 bytes
 SHA1 (patch-aa) = 91ac26ef1c8b60ca81b6dae83ed8eee0b03b2d94
+SHA1 (patch-ab) = 272bf0fefc0c846b39db167731f76a3d33585523
diff -r 1a1ba15b374f -r c4465c6cf5e9 devel/bouml/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/bouml/patches/patch-ab      Sun Jan 13 22:36:29 2008 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1 2008/01/13 22:36:29 rillig Exp $
+
+Resolve ambiguation between double and long double for sunpro.
+
+--- src/diagram/ArrowCanvas.cpp.orig   2007-05-26 10:03:14.000000000 +0200
++++ src/diagram/ArrowCanvas.cpp        2007-11-03 10:41:11.394915000 +0100
+@@ -159,7 +159,7 @@ void ArrowCanvas::update_pos() {
+     return;
+   }
+   
+-  const double m = ARROW_LENGTH/sqrt(dx*dx + dy*dy);
++  const double m = ARROW_LENGTH/sqrt(double(dx*dx + dy*dy));
+   
+   double deltax = dy*m;
+   double deltay = dx*m;



Home | Main Index | Thread Index | Old Index