[geos-commits] r2316 - trunk/source/headers/geos/noding

svn_geos at osgeo.org svn_geos at osgeo.org
Tue Apr 7 06:48:10 EDT 2009


Author: strk
Date: 2009-04-07 06:48:10 -0400 (Tue, 07 Apr 2009)
New Revision: 2316

Modified:
   trunk/source/headers/geos/noding/NodedSegmentString.h
Log:
Fix signed vs. unsigned compiler warning

Modified: trunk/source/headers/geos/noding/NodedSegmentString.h
===================================================================
--- trunk/source/headers/geos/noding/NodedSegmentString.h	2009-04-07 10:18:59 UTC (rev 2315)
+++ trunk/source/headers/geos/noding/NodedSegmentString.h	2009-04-07 10:48:10 UTC (rev 2316)
@@ -79,12 +79,12 @@
 	 * @param segmentIndex the index of the segment containing the intersection
 	 * @return the intersection node for the point
 	 */
-	SegmentNode * addIntersectionNode( geom::Coordinate * intPt, int segmentIndex) 
+	SegmentNode * addIntersectionNode( geom::Coordinate * intPt, size_t segmentIndex) 
 	{
-		int normalizedSegmentIndex = segmentIndex;
+		size_t normalizedSegmentIndex = segmentIndex;
 
 		// normalize the intersection point location
-		int nextSegIndex = normalizedSegmentIndex + 1;
+		size_t nextSegIndex = normalizedSegmentIndex + 1;
 		if (nextSegIndex < size()) 
 		{
 			const geom::Coordinate &nextPt = getCoordinate( nextSegIndex);



More information about the geos-commits mailing list