summaryrefslogtreecommitdiff
path: root/tagstats
diff options
context:
space:
mode:
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);