This is an automated email from the git hooks/post-receive script. sf pushed a commit to annotated tag v1.40 in repository mapcode.
commit e05f878bcf67d998503626d46d6c62573c87ff39 Author: Rijn Buve <[email protected]> Date: Thu Sep 18 17:36:43 2014 +0200 Fixed high precision decoder --- example/mapcode.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/example/mapcode.cpp b/example/mapcode.cpp index 8509585..289adca 100644 --- a/example/mapcode.cpp +++ b/example/mapcode.cpp @@ -445,6 +445,11 @@ int main(const int argc, const char** argv) // Self-checking code to see if encoder produces this Mapcode for the lat/lon. if (SELF_CHECK) { + const char* suffix = strstr(mapcode, "-"); + extraDigits = 0; + if (suffix != 0) { + extraDigits = strlen(suffix) - 1; + } selfCheckLatLonToMapcode(lat, lon, defaultTerritory, mapcode, extraDigits); } } @@ -671,6 +676,5 @@ int main(const int argc, const char** argv) usage(appName); return NORMAL_ERROR; } - fprintf(stderr, "done\n"); return 0; } -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/mapcode.git _______________________________________________ Pkg-grass-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

