diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-02-07 00:21:25 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-02-08 10:50:32 +0100 |
| commit | 0fc56e02e5a3d98c42df6a6db777018bc48dbda0 (patch) | |
| tree | 568e046134131090b2d91c5d91270bde1a983f01 /src | |
| parent | 0019962137b8e0c062f45d0d88c8fb47b185926f (diff) | |
| download | PROJ-0fc56e02e5a3d98c42df6a6db777018bc48dbda0.tar.gz PROJ-0fc56e02e5a3d98c42df6a6db777018bc48dbda0.zip | |
Fix test issues on i386
Fix a few issues of #1906 found when running the test suite
on Ubuntu 16.04 with gcc 5.5 -m32. When applied on top of
the fix of #1912, make check succeeds
Diffstat (limited to 'src')
| -rw-r--r-- | src/projections/laea.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/projections/laea.cpp b/src/projections/laea.cpp index a1e4bf8f..3d135864 100644 --- a/src/projections/laea.cpp +++ b/src/projections/laea.cpp @@ -44,7 +44,8 @@ static PJ_XY laea_e_forward (PJ_LP lp, PJ *P) { /* Ellipsoidal, forward if (Q->mode == OBLIQ || Q->mode == EQUIT) { sinb = q / Q->qp; - cosb = sqrt(1. - sinb * sinb); + const double cosb2 = 1. - sinb * sinb; + cosb = cosb2 > 0 ? sqrt(cosb2) : 0; } switch (Q->mode) { |
