[geos-commits] [SCM] GEOS branch master updated. 069769904739850a2a53b1dd10809fe06182a588

git at osgeo.org git at osgeo.org
Thu Apr 30 09:15:13 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 "GEOS".

The branch, master has been updated
       via  069769904739850a2a53b1dd10809fe06182a588 (commit)
      from  c69915dae7a30883b69b261002538d1e5f55dd82 (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 069769904739850a2a53b1dd10809fe06182a588
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Thu Apr 30 09:15:09 2020 -0700

    quiet warning about type coersion?

diff --git a/tests/unit/operation/distance/IndexedFacetDistanceTest.cpp b/tests/unit/operation/distance/IndexedFacetDistanceTest.cpp
index a0e2c8a..aed155a 100644
--- a/tests/unit/operation/distance/IndexedFacetDistanceTest.cpp
+++ b/tests/unit/operation/distance/IndexedFacetDistanceTest.cpp
@@ -93,7 +93,8 @@ struct test_facetdistanceop_data {
         std::vector<geos::geom::Coordinate> coords;
         for (size_t i = 0; i < nvertices; i++) {
             geos::geom::Coordinate c;
-            angle2sincircle(i*360.0/nvertices, radius, amplitude, &c.x, &c.y);
+            double angle = (double)i*360.0/(double)nvertices;
+            angle2sincircle(angle, radius, amplitude, &c.x, &c.y);
             cs.add(c);
         }
 

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

Summary of changes:
 tests/unit/operation/distance/IndexedFacetDistanceTest.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list