summaryrefslogtreecommitdiff
path: root/geography/geos/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'geography/geos/patches/patch-ac')
-rw-r--r--geography/geos/patches/patch-ac17
1 files changed, 17 insertions, 0 deletions
diff --git a/geography/geos/patches/patch-ac b/geography/geos/patches/patch-ac
new file mode 100644
index 00000000000..b5fb9f70465
--- /dev/null
+++ b/geography/geos/patches/patch-ac
@@ -0,0 +1,17 @@
+$NetBSD: patch-ac,v 1.1.1.1 2005/11/06 10:36:46 minskim Exp $
+
+g++-2.95 needs a bit help on complex type casts.
+
+--- source/geom/MultiPoint.cpp.orig Thu Jul 22 10:45:50 2004
++++ source/geom/MultiPoint.cpp Thu Apr 7 03:46:23 2005
+@@ -117,8 +117,8 @@ Geometry* MultiPoint::getBoundary() cons
+
+ bool MultiPoint::isSimple() const {
+ IsSimpleOp iso;
+- Geometry *in = toInternalGeometry(this);
+- bool issimple = iso.isSimple((MultiPoint *)in);
++ MultiPoint *in = dynamic_cast<MultiPoint *>(toInternalGeometry(this));
++ bool issimple = iso.isSimple(in);
+ if ( in != this ) delete(in);
+ return issimple;
+ }