diff options
author | root <root@no.no.james.local> | 2015-04-23 20:13:30 +0100 |
---|---|---|
committer | root <root@no.no.james.local> | 2015-04-23 20:13:30 +0100 |
commit | 354461e02fcb31806f355925617a6eb7e089d9ce (patch) | |
tree | 8681e033d955e18f6d7983b27c67bc84e1a98633 | |
parent | f57d1e76da88ebd729e4ef882fe621c35c72218c (diff) | |
download | python-354461e02fcb31806f355925617a6eb7e089d9ce.tar.gz python-354461e02fcb31806f355925617a6eb7e089d9ce.tar.bz2 python-354461e02fcb31806f355925617a6eb7e089d9ce.zip |
fish
-rw-r--r-- | librns510.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/librns510.c b/librns510.c index 10b3794..6a75452 100644 --- a/librns510.c +++ b/librns510.c @@ -104,7 +104,13 @@ void librns510_decode (const char *code, char *slat, char *slon) { double lat, lon; - int64_t z = atoll (code); + int64_t z; + +#ifdef _MSC_VER + sscanf(code, "%" PRId64, &z); +#else + z = atoll (code); +#endif fromz (z, &lat, &lon); |