summaryrefslogtreecommitdiff
path: root/tagstats
diff options
context:
space:
mode:
authorJocelyn Jaubert <jocelyn.jaubert@gmail.com>2011-10-15 13:06:12 +0200
committerJochen Topf <jochen@topf.org>2011-10-15 13:26:54 +0200
commitb6ba24dadd1885ee6767f763f13e6d19bb3ee807 (patch)
treeca59da5d54abd79190be0f05032774ab7d6b93c7 /tagstats
parent716566a9aec42a6d18a121c75909e2d703381d15 (diff)
downloadtaginfo-b6ba24dadd1885ee6767f763f13e6d19bb3ee807.tar
taginfo-b6ba24dadd1885ee6767f763f13e6d19bb3ee807.tar.gz
Bug fix: convert arguments of tagstats to double instead of int
Diffstat (limited to 'tagstats')
-rw-r--r--tagstats/tagstats.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tagstats/tagstats.cpp b/tagstats/tagstats.cpp
index b474a62..8a6add7 100644
--- a/tagstats/tagstats.cpp
+++ b/tagstats/tagstats.cpp
@@ -60,10 +60,10 @@ int main(int argc, char *argv[]) {
bool debug = false;
- int top = 90;
- int right = 180;
- int bottom = -90;
- int left = -180;
+ double top = 90;
+ double right = 180;
+ double bottom = -90;
+ double left = -180;
unsigned int width = 360;
unsigned int height = 180;
@@ -82,16 +82,16 @@ int main(int argc, char *argv[]) {
print_help();
exit(0);
case 't':
- top = atoi(optarg);
+ top = atof(optarg);
break;
case 'r':
- right = atoi(optarg);
+ right = atof(optarg);
break;
case 'b':
- bottom = atoi(optarg);
+ bottom = atof(optarg);
break;
case 'l':
- left = atoi(optarg);
+ left = atof(optarg);
break;
case 'w':
width = atoi(optarg);