aboutsummaryrefslogtreecommitdiffstats
path: root/science
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2018-05-20 23:23:23 +0800
committerkwm <kwm@FreeBSD.org>2018-05-20 23:23:23 +0800
commita82dabd1ca699e8b0f1b4d5a0297dc53a360a126 (patch)
tree4a4a8e6a59a7e9675fb439f705e6264e7b74a7a5 /science
parentb6feb1ee27567e76e1486c06fdf29b4ebad6a113 (diff)
downloadfreebsd-ports-gnome-a82dabd1ca699e8b0f1b4d5a0297dc53a360a126.tar.gz
freebsd-ports-gnome-a82dabd1ca699e8b0f1b4d5a0297dc53a360a126.tar.zst
freebsd-ports-gnome-a82dabd1ca699e8b0f1b4d5a0297dc53a360a126.zip
Fix the build on HEAD.
Reported by: pkgfallout
Diffstat (limited to 'science')
-rw-r--r--science/gchemutils/files/patch-libs_gcu_spacegroup.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/science/gchemutils/files/patch-libs_gcu_spacegroup.cc b/science/gchemutils/files/patch-libs_gcu_spacegroup.cc
new file mode 100644
index 000000000000..6bd3a6d1d989
--- /dev/null
+++ b/science/gchemutils/files/patch-libs_gcu_spacegroup.cc
@@ -0,0 +1,20 @@
+--- libs/gcu/spacegroup.cc.orig 2018-05-20 17:09:17.854019000 +0200
++++ libs/gcu/spacegroup.cc 2018-05-20 17:22:26.142391000 +0200
+@@ -340,7 +340,7 @@
+ Transform3d const * SpaceGroup::GetFirstTransform (list <Transform3d*>::const_iterator &i) const
+ {
+ i = m_Transforms.begin ();
+- return (i == m_Transforms.end())? reinterpret_cast <Transform3d *> (NULL): *i;
++ return (i == m_Transforms.end())? static_cast <Transform3d *> (NULL): *i;
+ }
+
+ /*!
+@@ -348,7 +348,7 @@
+ Transform3d const * SpaceGroup::GetNextTransform (list <Transform3d*>::const_iterator &i) const
+ {
+ i++;
+- return (i == m_Transforms.end ())? reinterpret_cast <Transform3d *> (NULL): *i;
++ return (i == m_Transforms.end ())? static_cast <Transform3d *> (NULL): *i;
+ }
+
+ /*!