Skip to content

Commit

Permalink
Fix build issues on Solaris
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Feb 26, 2019
1 parent 79b8794 commit 53e93c2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/apps/proj_strtod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ double proj_strtod(const char *str, char **endptr) {
number = exponent < 0? number / ex: number * ex;
}
else
number *= pow (10, exponent);
number *= pow (10.0, static_cast<double>(exponent));

return number;
}
Expand Down
2 changes: 1 addition & 1 deletion src/projections/eqearth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ PROJ_HEAD(eqearth, "Equal Earth") "\n\tPCyl, Sph&Ell";
#define A2 -0.081106
#define A3 0.000893
#define A4 0.003796
#define M (sqrt(3) / 2.0)
#define M (sqrt(3.0) / 2.0)

#define MAX_Y 1.3173627591574 /* 90° latitude on a sphere with radius 1 */
#define EPS 1e-11
Expand Down
2 changes: 1 addition & 1 deletion src/projections/igh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static PJ_XY s_forward (PJ_LP lp, PJ *P) { /* Spheroidal, forward */
static PJ_LP s_inverse (PJ_XY xy, PJ *P) { /* Spheroidal, inverse */
PJ_LP lp = {0.0,0.0};
struct pj_opaque *Q = static_cast<struct pj_opaque*>(P->opaque);
const double y90 = Q->dy0 + sqrt(2); /* lt=90 corresponds to y=y0+sqrt(2) */
const double y90 = Q->dy0 + sqrt(2.0); /* lt=90 corresponds to y=y0+sqrt(2) */

int z = 0;
if (xy.y > y90+EPSLN || xy.y < -y90+EPSLN) /* 0 */
Expand Down
2 changes: 1 addition & 1 deletion src/projections/isea.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ static long isea_disn(struct isea_dgg *g, int quad, struct isea_pt *di) {
return g->serial;
}
/* hexes in a quad */
hexes = lround(pow(g->aperture, g->resolution));
hexes = lround(pow(static_cast<double>(g->aperture), static_cast<double>(g->resolution)));
if (quad == 11) {
g->serial = 1 + 10 * hexes + 1;
return g->serial;
Expand Down

0 comments on commit 53e93c2

Please sign in to comment.