diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2020-02-08 10:17:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-08 10:17:18 +0100 |
| commit | ead6a66d9830e1f3e0f49a9d46fcd500f342f20f (patch) | |
| tree | 960c4a5511f10fca7f51e1bd1176485bfc9f2204 /src/projections/laea.cpp | |
| parent | b6f442db6c6b8a05fb9d824729cb4593e519edf8 (diff) | |
| parent | 7001c21828420f027f5984132d551af99794f1e4 (diff) | |
| download | PROJ-ead6a66d9830e1f3e0f49a9d46fcd500f342f20f.tar.gz PROJ-ead6a66d9830e1f3e0f49a9d46fcd500f342f20f.zip | |
Merge pull request #1917 from rouault/fix_test_issues_on_i386
Fix test issues on i386
Diffstat (limited to 'src/projections/laea.cpp')
| -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) { |
