[geos-commits] [SCM] GEOS branch master updated. 56fc4162f78a04ed6df61d8b57e9da4cde95e634

git at osgeo.org git at osgeo.org
Fri Jan 25 16:43:39 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  56fc4162f78a04ed6df61d8b57e9da4cde95e634 (commit)
      from  3d81f71d2984cc98c543a9eeccbee12be2769686 (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 56fc4162f78a04ed6df61d8b57e9da4cde95e634
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Fri Jan 25 16:43:11 2019 -0800

    Use strtod in Envelope constructor
    References #875

diff --git a/src/geom/Envelope.cpp b/src/geom/Envelope.cpp
index c688195..5edfcfa 100644
--- a/src/geom/Envelope.cpp
+++ b/src/geom/Envelope.cpp
@@ -158,10 +158,10 @@ Envelope::Envelope(const string &str)
   vector<string> values = split(coordString, ":,");
 
   // create a new envelopet
-  init(::atof(values[0].c_str()),
-       ::atof(values[1].c_str()),
-       ::atof(values[2].c_str()),
-       ::atof(values[3].c_str()));
+  init(strtod(values[0].c_str(), nullptr),
+       strtod(values[1].c_str(), nullptr),
+       strtod(values[2].c_str(), nullptr),
+       strtod(values[3].c_str(), nullptr));
 }
 
 /*public*/

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

Summary of changes:
 src/geom/Envelope.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list