summaryrefslogtreecommitdiff
path: root/geography/geos/patches/patch-ac
blob: b5fb9f70465338997012c702d0a7a39488337de8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
 }