[postgis-tickets] [SCM] PostGIS branch stable-2.4 updated. 489ca327b8fb2d690cd17bc7becfd32d8cb703bd
git at osgeo.org
git at osgeo.org
Mon Mar 30 03:34:00 PDT 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, stable-2.4 has been updated
via 489ca327b8fb2d690cd17bc7becfd32d8cb703bd (commit)
from 74d82445a7704a4b5cebac50bfe05c0b975d9c7c (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 489ca327b8fb2d690cd17bc7becfd32d8cb703bd
Author: Raúl Marín <git at rmr.ninja>
Date: Mon Mar 30 12:26:53 2020 +0200
Remove c99 loop initial declaration
diff --git a/postgis/lwgeom_in_gml.c b/postgis/lwgeom_in_gml.c
index 3f312ab..71637a0 100644
--- a/postgis/lwgeom_in_gml.c
+++ b/postgis/lwgeom_in_gml.c
@@ -1061,6 +1061,7 @@ static LWGEOM* parse_gml_curve(xmlNodePtr xnode, bool *hasz, int *root_srid)
* So we must aggregate all the segments into a single one and avoid
* to copy the redundant points
*/
+ size_t i;
size_t cp_point_size = sizeof(POINT3D); /* All internals are done with 3D */
size_t final_point_size = *hasz ? sizeof(POINT3D) : sizeof(POINT2D);
pa = ptarray_construct(1, 0, npoints - lss + 1);
@@ -1074,7 +1075,7 @@ static LWGEOM* parse_gml_curve(xmlNodePtr xnode, bool *hasz, int *root_srid)
* last point of the previous one, and copy all points except the
* first one (since it'd be repeated)
*/
- for (size_t i = 1; i < lss; i++)
+ for (i = 1; i < lss; i++)
{
if (memcmp(getPoint_internal(pa, npoints - 1), getPoint_internal(ppa[i], 0), final_point_size))
gml_lwpgerror("invalid GML representation", 41);
-----------------------------------------------------------------------
Summary of changes:
postgis/lwgeom_in_gml.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list