Skip to content

Commit bc1a495

Browse files
author
unknown
committed
Compilation fixes for Visual Studio 2013
1 parent e0bb80c commit bc1a495

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example/mapcode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ int main(const int argc, const char** argv)
570570

571571
int gridX = 0;
572572
int gridY = 0;
573-
int line = my_round(sqrt(totalNrOfPoints));
573+
int line = my_round(sqrt((float) totalNrOfPoints));
574574
for (int i = 0; i < totalNrOfPoints; ++i) {
575575
double lat;
576576
double lon;

mapcodelib/mapcoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2341,7 +2341,7 @@ int interpret_coord( const unsigned char *i, int islat, double *result )
23412341
#define skipnum(i) {while (isdig(*i)) i++;}
23422342
#define skipfp(i) {skipnum(i); if (*i=='.') {i++;skipnum(i);}}
23432343

2344-
const char *winds = islat ? "nsNS+- " : "ewEW+- ";
2344+
char *winds = islat ? "nsNS+- " : "ewEW+- ";
23452345

23462346
// skip white spaces, signs and appropriate wind direction letters
23472347
char *p;

0 commit comments

Comments
 (0)