[postgis-tickets] r15932 - Quiet strk's warnings?
Paul Ramsey
pramsey at cleverelephant.ca
Sat Oct 7 09:49:15 PDT 2017
Author: pramsey
Date: 2017-10-07 09:49:14 -0700 (Sat, 07 Oct 2017)
New Revision: 15932
Modified:
trunk/liblwgeom/ptarray.c
Log:
Quiet strk's warnings?
Modified: trunk/liblwgeom/ptarray.c
===================================================================
--- trunk/liblwgeom/ptarray.c 2017-10-07 16:25:13 UTC (rev 15931)
+++ trunk/liblwgeom/ptarray.c 2017-10-07 16:49:14 UTC (rev 15932)
@@ -1891,10 +1891,14 @@
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->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