[postgis-tickets] r16141 - Remove warning under gcc (closes #3935)

Paul Ramsey pramsey at cleverelephant.ca
Mon Dec 11 06:14:06 PST 2017


Author: pramsey
Date: 2017-12-11 06:14:06 -0800 (Mon, 11 Dec 2017)
New Revision: 16141

Modified:
   trunk/liblwgeom/g_serialized.c
Log:
Remove warning under gcc (closes #3935)


Modified: trunk/liblwgeom/g_serialized.c
===================================================================
--- trunk/liblwgeom/g_serialized.c	2017-12-10 01:55:00 UTC (rev 16140)
+++ trunk/liblwgeom/g_serialized.c	2017-12-11 14:14:06 UTC (rev 16141)
@@ -307,8 +307,8 @@
 		sz2 > 16 &&
 		!FLAGS_GET_BBOX(g1->flags) &&
 		!FLAGS_GET_BBOX(g2->flags) &&
-		*(uint32_t*)(g1->data) == POINTTYPE &&
-		*(uint32_t*)(g2->data) == POINTTYPE
+		*(uint32_t*)(g1+8) == POINTTYPE &&
+		*(uint32_t*)(g2+8) == POINTTYPE
 	)
 	{
 		double *dptr = (double*)(g1->data + sizeof(double));



More information about the postgis-tickets mailing list