Skip to content

Commit 86ad120

Browse files
committed
Release 2.0
1 parent a40520a commit 86ad120

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mapcode_library_c.doc

-33.5 KB
Binary file not shown.

mapcodelib/mapcoder.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1878,8 +1878,8 @@ static int encodeLatLonToMapcodes_internal( char **v, Mapcodes *mapcodes, double
18781878

18791879
if (lat<-90) lat=-90;
18801880
if (lat> 90) lat= 90;
1881-
if (lon<-180) lon+=360;
1882-
if (lon>=180) lon-=360;
1881+
while (lon<-180) lon+=360;
1882+
while (lon>=180) lon-=360;
18831883
#ifndef SUPPORT_HIGH_PRECISION
18841884
lat*=1000000; if (lat<0) lat-=0.5; else lat+=0.5;
18851885
lon*=1000000; if (lon<0) lon-=0.5; else lon+=0.5;

0 commit comments

Comments
 (0)