[geos-commits] [SCM] GEOS branch 3.7 updated. 74970cd5a3f028efe7c3a3e446b62b7501daef92
git at osgeo.org
git at osgeo.org
Fri Jan 25 16:44:30 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, 3.7 has been updated
via 74970cd5a3f028efe7c3a3e446b62b7501daef92 (commit)
from 72eed76157974b667eb39db0e33e2e3b9667478b (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 74970cd5a3f028efe7c3a3e446b62b7501daef92
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Fri Jan 25 16:44:10 2019 -0800
Change Envelope constructor to use strtod
References #875
diff --git a/src/geom/Envelope.cpp b/src/geom/Envelope.cpp
index 6df01a9..3def38f 100644
--- a/src/geom/Envelope.cpp
+++ b/src/geom/Envelope.cpp
@@ -140,10 +140,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