[postgis-tickets] r15931 - Change spaces to tabs in indenting

Paul Ramsey pramsey at cleverelephant.ca
Sat Oct 7 09:25:13 PDT 2017


Author: pramsey
Date: 2017-10-07 09:25:13 -0700 (Sat, 07 Oct 2017)
New Revision: 15931

Modified:
   trunk/liblwgeom/ptarray.c
Log:
Change spaces to tabs in indenting


Modified: trunk/liblwgeom/ptarray.c
===================================================================
--- trunk/liblwgeom/ptarray.c	2017-10-07 13:39:45 UTC (rev 15930)
+++ trunk/liblwgeom/ptarray.c	2017-10-07 16:25:13 UTC (rev 15931)
@@ -1563,10 +1563,10 @@
 int_cmp(const void *a, const void *b)
 {
 	/* casting pointer types */
-    const int *ia = (const int *)a;
-    const int *ib = (const int *)b;
+	const int *ia = (const int *)a;
+	const int *ib = (const int *)b;
 	/* returns negative if b > a and positive if a > b */
-    return *ia - *ib;
+	return *ia - *ib;
 }
 
 void
@@ -1665,13 +1665,13 @@
 	const POINT2D *a3;
 
 	if ( pts->npoints % 2 != 1 )
-        lwerror("arc point array with even number of points");
+		lwerror("arc point array with even number of points");
 
 	a1 = getPoint2d_cp(pts, 0);
 
 	for ( i=2; i < pts->npoints; i += 2 )
 	{
-    	a2 = getPoint2d_cp(pts, i-1);
+		a2 = getPoint2d_cp(pts, i-1);
 		a3 = getPoint2d_cp(pts, i);
 		dist += lw_arc_length(a1, a2, a3);
 		a1 = a3;
@@ -1890,11 +1890,11 @@
 		/* Look straight into the abyss */
 		p = (POINT4D*)(getPoint_internal(pa, i));
 
-    	if (grid->xsize > 0)
-    		p->x = rint((p->x - grid->ipx)/grid->xsize) * grid->xsize + grid->ipx;
+		if (grid->xsize > 0)
+			p->x = rint((p->x - grid->ipx)/grid->xsize) * grid->xsize + grid->ipx;
 
-    	if (grid->ysize > 0)
-    		p->y = rint((p->y - grid->ipy)/grid->ysize) * grid->ysize + grid->ipy;
+		if (grid->ysize > 0)
+			p->y = rint((p->y - grid->ipy)/grid->ysize) * grid->ysize + grid->ipy;
 
 		/* Read and round this point */
 		/* Z is always in third position */



More information about the postgis-tickets mailing list