[postgis-devel] [postgis-tickets] r16998 - Impose min number of segments per arc during linearization

Sandro Santilli strk at kbt.io
Thu Nov 8 06:17:43 PST 2018


On Thu, Nov 08, 2018 at 04:14:54AM +0000, Daniel Baston wrote:
> Author: dbaston
> Date: 2018-11-08 04:14:54 -0800 (Thu, 08 Nov 2018)
> New Revision: 16998

[...]

> -	if ( reverse ) {{
> +	if ( reverse )
> +	{
> +		/* Append points in order to a temporary POINTARRAY and
> +		 * reverse them before writing to the output POINTARRAY. */
>  		const int capacity = 8; /* TODO: compute exactly ? */
>  		pa = ptarray_construct_empty(ptarray_has_z(to), ptarray_has_m(to), capacity);
> -	}}
> +	}

The abve declares a variable (int capacity) outside of a block,
I don't think that's valid C99

--strk;


More information about the postgis-devel mailing list