[geos-commits] [SCM] GEOS branch master updated. a921e178f7556fcdca466186b152c4e46a43da96

git at osgeo.org git at osgeo.org
Mon Dec 2 19:54:26 PST 2019


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  a921e178f7556fcdca466186b152c4e46a43da96 (commit)
      from  2e3ef091c0c5f6e157e60af3e7f6d762aab83b6c (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 a921e178f7556fcdca466186b152c4e46a43da96
Author: Daniel Baston <dbaston at gmail.com>
Date:   Mon Dec 2 22:05:14 2019 -0500

    Fix a few clang conversion warnings

diff --git a/tests/unit/capi/GEOSGeom_createCollectionTest.cpp b/tests/unit/capi/GEOSGeom_createCollectionTest.cpp
index 9f850de..68da373 100644
--- a/tests/unit/capi/GEOSGeom_createCollectionTest.cpp
+++ b/tests/unit/capi/GEOSGeom_createCollectionTest.cpp
@@ -109,7 +109,7 @@ void object::test<3>
     geoms.push_back(GEOSGeom_createEmptyPoint_r(handle_));
     // takes ownership of individual geometries
     geom_ = GEOSGeom_createCollection_r(handle_, GEOS_MULTIPOINT,
-                                        geoms.data(), static_cast<int>(geoms.size()));
+                                        geoms.data(), static_cast<unsigned int>(geoms.size()));
     ensure_equals(static_cast<size_t>(GEOSGetNumGeometries_r(handle_, geom_)), geoms.size());
 }
 
diff --git a/tests/unit/geom/FixedSizeCoordinateSequenceTest.cpp b/tests/unit/geom/FixedSizeCoordinateSequenceTest.cpp
index 9987750..eb5e51e 100644
--- a/tests/unit/geom/FixedSizeCoordinateSequenceTest.cpp
+++ b/tests/unit/geom/FixedSizeCoordinateSequenceTest.cpp
@@ -133,10 +133,10 @@ void object::test<6>
     FixedSizeCoordinateSequence<1> a(2);
     a.setAt({ 1, 2, 3 }, 0);
 
-    ensure_equals(a.getDimension(), 2);
+    ensure_equals(a.getDimension(), 2u);
 
     auto b = a.clone();
-    ensure_equals(b->getDimension(), 2);
+    ensure_equals(b->getDimension(), 2u);
     ensure(a.getAt(0).equals3D(b->getAt(0)));
 }
 
diff --git a/tests/unit/noding/SegmentNodeTest.cpp b/tests/unit/noding/SegmentNodeTest.cpp
index d3cc2b7..dbde476 100644
--- a/tests/unit/noding/SegmentNodeTest.cpp
+++ b/tests/unit/noding/SegmentNodeTest.cpp
@@ -54,7 +54,7 @@ void object::test<1>
 
     // Create coordinates sequence
     const size_t coords_size = 2;
-    auto cs = geos::detail::make_unique<geos::geom::CoordinateArraySequence>(0, coords_size);
+    auto cs = geos::detail::make_unique<geos::geom::CoordinateArraySequence>(0u, coords_size);
 
     ensure(nullptr != cs.get());
 
diff --git a/tests/unit/operation/buffer/BufferBuilderTest.cpp b/tests/unit/operation/buffer/BufferBuilderTest.cpp
index d8f9b04..e3f4613 100644
--- a/tests/unit/operation/buffer/BufferBuilderTest.cpp
+++ b/tests/unit/operation/buffer/BufferBuilderTest.cpp
@@ -89,7 +89,7 @@ void object::test<1>
     params.setEndCapStyle(BufferParameters::CAP_FLAT);
     params.setQuadrantSegments(8);
     params.setJoinStyle(BufferParameters::JOIN_MITRE);
-    params.setMitreLimit(5.57F);
+    params.setMitreLimit(5.57);
     //params.setSingleSided(true); // DO NOT switch for non-areal input, see ticket #633
     BufferBuilder builder(params);
     ensure(distance > 0);

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

Summary of changes:
 tests/unit/capi/GEOSGeom_createCollectionTest.cpp   | 2 +-
 tests/unit/geom/FixedSizeCoordinateSequenceTest.cpp | 4 ++--
 tests/unit/noding/SegmentNodeTest.cpp               | 2 +-
 tests/unit/operation/buffer/BufferBuilderTest.cpp   | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list