[mapcode] 28/32: Compilation fixes for Visual Studio 2013
Stefan Fritsch
sf at moszumanska.debian.org
Wed Nov 2 23:27:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
sf pushed a commit to annotated tag v1.33
in repository mapcode.
commit bc1a49556fa9e126c607cb9fe623aff75c11fb49
Author: unknown <matthew.lowden at tomtom.com>
Date: Wed Sep 3 20:23:47 2014 +0200
Compilation fixes for Visual Studio 2013
---
example/mapcode.cpp | 2 +-
mapcodelib/mapcoder.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/example/mapcode.cpp b/example/mapcode.cpp
index 13b067c..d7e46fa 100755
--- a/example/mapcode.cpp
+++ b/example/mapcode.cpp
@@ -570,7 +570,7 @@ int main(const int argc, const char** argv)
int gridX = 0;
int gridY = 0;
- int line = my_round(sqrt(totalNrOfPoints));
+ int line = my_round(sqrt((float) totalNrOfPoints));
for (int i = 0; i < totalNrOfPoints; ++i) {
double lat;
double lon;
diff --git a/mapcodelib/mapcoder.c b/mapcodelib/mapcoder.c
index aee1829..a753587 100755
--- a/mapcodelib/mapcoder.c
+++ b/mapcodelib/mapcoder.c
@@ -2341,7 +2341,7 @@ int interpret_coord( const unsigned char *i, int islat, double *result )
#define skipnum(i) {while (isdig(*i)) i++;}
#define skipfp(i) {skipnum(i); if (*i=='.') {i++;skipnum(i);}}
- const char *winds = islat ? "nsNS+- " : "ewEW+- ";
+ char *winds = islat ? "nsNS+- " : "ewEW+- ";
// skip white spaces, signs and appropriate wind direction letters
char *p;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/mapcode.git
More information about the Pkg-grass-devel
mailing list