[geos-commits] [SCM] GEOS branch master updated. 6ceec43e610ccac7d187654646d86b6188c3fc99

git at osgeo.org git at osgeo.org
Thu Jan 28 08:34:38 PST 2021


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 "GEOS".

The branch, master has been updated
       via  6ceec43e610ccac7d187654646d86b6188c3fc99 (commit)
      from  18ced84d7cedda697170a346873c2c359454447b (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 6ceec43e610ccac7d187654646d86b6188c3fc99
Author: Daniel Baston <dbaston at gmail.com>
Date:   Thu Jan 28 11:34:19 2021 -0500

    Resolve some fussy clang warnings

diff --git a/src/geom/CoordinateArraySequence.cpp b/src/geom/CoordinateArraySequence.cpp
index 429382d..56ef86d 100644
--- a/src/geom/CoordinateArraySequence.cpp
+++ b/src/geom/CoordinateArraySequence.cpp
@@ -177,7 +177,7 @@ CoordinateArraySequence::add(std::size_t i, const Coordinate& coord,
         }
     }
 
-    vect.insert(vect.begin() + i, coord);
+    vect.insert(std::next(vect.begin(), static_cast<std::ptrdiff_t>(i)), coord);
 }
 
 size_t
diff --git a/src/geom/Polygon.cpp b/src/geom/Polygon.cpp
index 4c15915..2acf1f2 100644
--- a/src/geom/Polygon.cpp
+++ b/src/geom/Polygon.cpp
@@ -487,7 +487,7 @@ Polygon::isRectangle() const
     // check vertices are in right order
     double prevX = seq.getX(0);
     double prevY = seq.getY(0);
-    for(int i = 1; i <= 4; i++) {
+    for(uint32_t i = 1; i <= 4; i++) {
         double x = seq.getX(i);
         double y = seq.getY(i);
         bool xChanged = (x != prevX);

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

Summary of changes:
 src/geom/CoordinateArraySequence.cpp | 2 +-
 src/geom/Polygon.cpp                 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list