diff options
author | jperkin <jperkin@pkgsrc.org> | 2014-09-23 14:33:40 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2014-09-23 14:33:40 +0000 |
commit | aba1c2f53cb0fa84271f0b0552a8766dceaec1a5 (patch) | |
tree | 8ef60bdfa425a0558e1d90af011686e837243777 | |
parent | 6e95bbc8df9dd0b282258af4b9212da4dd74b935 (diff) | |
download | pkgsrc-aba1c2f53cb0fa84271f0b0552a8766dceaec1a5.tar.gz |
Fix "call of overloaded 'abs(unsigned int)' is ambiguous".
-rw-r--r-- | biology/gnome-chemistry-utils/distinfo | 3 | ||||
-rw-r--r-- | biology/gnome-chemistry-utils/patches/patch-libs_gccv_text.cc | 24 |
2 files changed, 26 insertions, 1 deletions
diff --git a/biology/gnome-chemistry-utils/distinfo b/biology/gnome-chemistry-utils/distinfo index 6f380a1c819..e2b7b3e5b4a 100644 --- a/biology/gnome-chemistry-utils/distinfo +++ b/biology/gnome-chemistry-utils/distinfo @@ -1,8 +1,9 @@ -$NetBSD: distinfo,v 1.5 2013/05/09 13:45:44 joerg Exp $ +$NetBSD: distinfo,v 1.6 2014/09/23 14:33:40 jperkin Exp $ SHA1 (gnome-chemistry-utils-0.12.13.tar.bz2) = a3d83f281ccd7fdbc98e14e295093287d8648a69 RMD160 (gnome-chemistry-utils-0.12.13.tar.bz2) = 259509c4e9086fc40e91d1f2f93ad5bad9317b8c Size (gnome-chemistry-utils-0.12.13.tar.bz2) = 5399998 bytes +SHA1 (patch-libs_gccv_text.cc) = 798aa83faf31c0e63c88859ccca9ab40c25e5f6d SHA1 (patch-libs_gcu_loader-error.h) = 8e223394ac6fb6a17cc23439fc2e3bb2e3bc5440 SHA1 (patch-libs_gcu_spectrumdoc.cc) = 6d4d87c128096006fd384fc058c7942b49df8646 SHA1 (patch-programs_crystal_document.cc) = 192b376922d39796780863720459ee3ef025bfed diff --git a/biology/gnome-chemistry-utils/patches/patch-libs_gccv_text.cc b/biology/gnome-chemistry-utils/patches/patch-libs_gccv_text.cc new file mode 100644 index 00000000000..961a69071c1 --- /dev/null +++ b/biology/gnome-chemistry-utils/patches/patch-libs_gccv_text.cc @@ -0,0 +1,24 @@ +$NetBSD: patch-libs_gccv_text.cc,v 1.1 2014/09/23 14:33:40 jperkin Exp $ + +Avoid "call of overloaded 'abs(unsigned int)' is ambiguous". + +--- libs/gccv/text.cc.orig 2012-08-11 12:41:27.000000000 +0000 ++++ libs/gccv/text.cc +@@ -1208,7 +1208,7 @@ bool Text::OnKeyPressed (GdkEventKey *ev + case GDK_Delete: + case GDK_KP_Delete: { + if (m_CurPos != m_StartSel) { +- ReplaceText (empty_st, MIN (m_CurPos, m_StartSel), abs (m_CurPos - m_StartSel)); ++ ReplaceText (empty_st, MIN (m_CurPos, m_StartSel), abs ((float)m_CurPos - m_StartSel)); + if (client) + client->TextChanged (m_CurPos); + break; +@@ -1228,7 +1228,7 @@ bool Text::OnKeyPressed (GdkEventKey *ev + break; + case GDK_BackSpace: { + if (m_CurPos != m_StartSel) { +- ReplaceText (empty_st, MIN (m_CurPos, m_StartSel), abs (m_CurPos - m_StartSel)); ++ ReplaceText (empty_st, MIN (m_CurPos, m_StartSel), abs ((float)m_CurPos - m_StartSel)); + if (client) + client->TextChanged (m_CurPos); + break; |