]> granicus.if.org Git - postgis/commitdiff
Declare variables the proper C way
authorSandro Santilli <strk@keybit.net>
Sun, 11 Aug 2013 17:05:59 +0000 (17:05 +0000)
committerSandro Santilli <strk@keybit.net>
Sun, 11 Aug 2013 17:05:59 +0000 (17:05 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11770 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwsegmentize.c

index b7858f4e414b9fdb860eedb3c81dd1a02ac837fe..61cf59de587f2f124ce3492e94a1261868b4a0dd 100644 (file)
@@ -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");