aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_stere.c
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2017-02-26 12:05:24 +0100
committerEven Rouault <even.rouault@spatialys.com>2017-02-26 12:43:40 +0100
commit8eb46dbbb63d7a880ac787561c907491cffc0917 (patch)
tree2d197951da4cf7a62e9f27728fc87995ffa4c7d6 /src/PJ_stere.c
parent89b273a10a5ca97510d7bf2c6970c4c2ff5cd740 (diff)
downloadPROJ-8eb46dbbb63d7a880ac787561c907491cffc0917.tar.gz
PROJ-8eb46dbbb63d7a880ac787561c907491cffc0917.zip
Recent clang (e.g MacOSX) warning fixes related to double to _Bool implicit conversions
Diffstat (limited to 'src/PJ_stere.c')
-rw-r--r--src/PJ_stere.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PJ_stere.c b/src/PJ_stere.c
index 5ca1b9d9..c7fb02e3 100644
--- a/src/PJ_stere.c
+++ b/src/PJ_stere.c
@@ -222,7 +222,7 @@ static PJ *setup(PJ *P) { /* general initialization */
Q->mode = t > EPS10 ? OBLIQ : EQUIT;
Q->phits = fabs (Q->phits);
- if (P->es) {
+ if (P->es != 0.0) {
double X;
switch (Q->mode) {
@@ -295,7 +295,7 @@ PJ *PROJECTION(ups) {
/* International Ellipsoid */
P->phi0 = pj_param(P->ctx, P->params, "bsouth").i ? - M_HALFPI: M_HALFPI;
- if (!P->es) E_ERROR(-34);
+ if (P->es == 0.0) E_ERROR(-34);
P->k0 = .994;
P->x0 = 2000000.;
P->y0 = 2000000.;