aboutsummaryrefslogtreecommitdiff
path: root/src/proj_etmerc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/proj_etmerc.c')
-rw-r--r--src/proj_etmerc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proj_etmerc.c b/src/proj_etmerc.c
index a5351f5d..3ef0903f 100644
--- a/src/proj_etmerc.c
+++ b/src/proj_etmerc.c
@@ -308,7 +308,7 @@ ENTRY0(utm)
else
E_ERROR(-35)
else /* nearest central meridian input */
- if ((zone = floor((adjlon(P->lam0) + PI) * 30. / PI)) < 0)
+ if ((zone = (int)(floor((adjlon(P->lam0) + PI) * 30. / PI))) < 0)
zone = 0;
else if (zone >= 60)
zone = 59;