postgis.git / summary / log / commit / refs

commit    88d438598104efec0c0e68856477f36d0446e71a
Author:   Raúl Marín <git@rmr.ninja>
Date:     Mon Feb 24 11:45:46 2020 +0000

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


postgis/mvt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/postgis/mvt.c b/postgis/mvt.c index e1fc08540..c2839e9d7 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) [parent: 3902e1442149]