diff options
Diffstat (limited to 'src/proj_etmerc.c')
| -rw-r--r-- | src/proj_etmerc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/proj_etmerc.c b/src/proj_etmerc.c index 06da604d..457edcb8 100644 --- a/src/proj_etmerc.c +++ b/src/proj_etmerc.c @@ -310,7 +310,7 @@ PJ *PROJECTION(etmerc) { PJ *PROJECTION(utm) { - int zone; + long zone; struct pj_opaque *Q = pj_calloc (1, sizeof (struct pj_opaque)); if (0==Q) return pj_default_destructor (P, ENOMEM); @@ -337,7 +337,7 @@ PJ *PROJECTION(utm) { } else /* nearest central meridian input */ { - zone = (int)(floor ((adjlon (P->lam0) + M_PI) * 30. / M_PI)); + zone = lround((floor ((adjlon (P->lam0) + M_PI) * 30. / M_PI))); if (zone < 0) zone = 0; else if (zone >= 60) |
