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

git at osgeo.org git at osgeo.org
Mon Dec 17 11:16:47 PST 2018


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  6fa6d65247829c1ba120015d4a59bd648b536a18 (commit)
      from  b36f6f2f7ef2e8f1cbf7c9387b3f4a51fb575e13 (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 6fa6d65247829c1ba120015d4a59bd648b536a18
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Mon Dec 17 11:16:39 2018 -0800

    Use fabs not abs

diff --git a/src/algorithm/Area.cpp b/src/algorithm/Area.cpp
index e203953..eb1fea0 100644
--- a/src/algorithm/Area.cpp
+++ b/src/algorithm/Area.cpp
@@ -28,14 +28,14 @@ namespace algorithm { // geos.algorithm
 double
 Area::ofRing(const std::vector<geom::Coordinate> &ring)
 {
-    return abs(ofRingSigned(ring));
+    return fabs(ofRingSigned(ring));
 }
 
 /* public static */
 double
 Area::ofRing(const geom::CoordinateSequence *ring)
 {
-    return abs(ofRingSigned(ring));
+    return fabs(ofRingSigned(ring));
 }
 
 /* public static */

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

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


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list