[postgis-tickets] [SCM] PostGIS branch master updated. 3.1.0alpha1-14-g88d4385

git at osgeo.org git at osgeo.org
Mon Feb 24 03:47:24 PST 2020


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  88d438598104efec0c0e68856477f36d0446e71a (commit)
      from  3902e1442149f642ab2b6506388dc63ce73208f2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 88d438598104efec0c0e68856477f36d0446e71a
Author: Raúl Marín <git at rmr.ninja>
Date:   Mon Feb 24 12:45:46 2020 +0100

    mvt: Minor type tweaks
    
    Prefer using internal types (from stdint.h) rather than Postgres'

diff --git a/postgis/mvt.c b/postgis/mvt.c
index e1fc085..c2839e9 100644
--- a/postgis/mvt.c
+++ b/postgis/mvt.c
@@ -22,6 +22,7 @@
  *
  **********************************************************************/
 
+#include <stdbool.h>
 #include <string.h>
 #include <float.h>
 #include <math.h>
@@ -779,7 +780,7 @@ static void parse_values(mvt_agg_context *ctx)
 
 /* For a given geometry, look for the highest dimensional basic type, that is,
  * point, line or polygon */
-static uint8
+static uint8_t
 lwgeom_get_basic_type(LWGEOM *geom)
 {
 	switch(geom->type)
@@ -798,7 +799,7 @@ lwgeom_get_basic_type(LWGEOM *geom)
 	case TINTYPE:
 	{
 		uint32_t i;
-		uint8 type = 0;
+		uint8_t type = 0;
 		LWCOLLECTION *g = (LWCOLLECTION*)geom;
 		for (i = 0; i < g->ngeoms; i++)
 		{
@@ -820,7 +821,7 @@ lwgeom_get_basic_type(LWGEOM *geom)
  * draw it anyways.
  */
 static inline LWGEOM *
-lwgeom_to_basic_type(LWGEOM *geom, uint8 original_type)
+lwgeom_to_basic_type(LWGEOM *geom, uint8_t original_type)
 {
 	LWGEOM *geom_out = geom;
 	if (lwgeom_get_type(geom) == COLLECTIONTYPE)

-----------------------------------------------------------------------

Summary of changes:
 postgis/mvt.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list