[geos-commits] [SCM] GEOS branch 3.12 updated. 8fa289cf0146780a0be01e97501589b5a29224c4

git at osgeo.org git at osgeo.org
Sat Jul 27 01:53:41 PDT 2024


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, 3.12 has been updated
       via  8fa289cf0146780a0be01e97501589b5a29224c4 (commit)
      from  16c92dbb20de08fa0be7ae8d10d69fcef63236ef (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 8fa289cf0146780a0be01e97501589b5a29224c4
Author: Mike Taves <mwtoews at gmail.com>
Date:   Sat Jul 27 20:49:22 2024 +1200

    Fix MaximumInscribedCircle::computeMaximumIterations for small values (#1133)

diff --git a/src/algorithm/construct/MaximumInscribedCircle.cpp b/src/algorithm/construct/MaximumInscribedCircle.cpp
index b20d14a08..c3a471078 100644
--- a/src/algorithm/construct/MaximumInscribedCircle.cpp
+++ b/src/algorithm/construct/MaximumInscribedCircle.cpp
@@ -85,9 +85,9 @@ MaximumInscribedCircle::computeMaximumIterations(const Geometry* geom, double to
     double diam = geom->getEnvelopeInternal()->getDiameter();
     double ncells = diam / toleranceDist;
     //-- Using log of ncells allows control over number of iterations
-    std::size_t factor = (std::size_t) std::log(ncells);
+    int factor = (int) std::log(ncells);
     if (factor < 1) factor = 1;
-    return 2000 + 2000 * factor;
+    return (std::size_t) (2000 + 2000 * factor);
 }
 
 /* public */

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

Summary of changes:
 src/algorithm/construct/MaximumInscribedCircle.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list