From 77cbccefb49858ec3d3ccd3128c43fc44db2c9a2 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Sun, 11 Aug 2013 17:05:59 +0000 Subject: [PATCH] Declare variables the proper C way git-svn-id: http://svn.osgeo.org/postgis/trunk@11770 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/lwsegmentize.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/liblwgeom/lwsegmentize.c b/liblwgeom/lwsegmentize.c index b7858f4e4..61cf59de5 100644 --- a/liblwgeom/lwsegmentize.c +++ b/liblwgeom/lwsegmentize.c @@ -584,6 +584,9 @@ pta_desegmentize(POINTARRAY *points, int type, int srid) /* And then see if the next edge follows it */ while( i < num_edges-2 ) { + unsigned int arc_edges; + unsigned int num_quadrants; + found_arc = LW_FALSE; /* Make candidate arc */ getPoint4d_p(points, i , &a1); @@ -617,8 +620,8 @@ pta_desegmentize(POINTARRAY *points, int type, int srid) * really considered an arc * See http://trac.osgeo.org/postgis/ticket/2420 */ - unsigned int arc_edges = j - 1 - i; - unsigned int num_quadrants = 1; /* silly guess, TODO: compute */ + arc_edges = j - 1 - i; + num_quadrants = 1; /* silly guess, TODO: compute */ LWDEBUGF(4, "arc defined by %d edges found", arc_edges); if ( a1.x == b.x && a1.y == b.y ) { LWDEBUG(4, "arc is a circle"); -- 2.40.0