summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-02-22 21:33:25 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-02-22 21:33:25 -0800
commitf59b8db649c1596a38ce20025417c4060d442d64 (patch)
tree1414a2be7a92cb8b84b3f3dd6546bf9d59f14330
parente79903a50b0a9cba9d0e41fc2e389117f3ff42ef (diff)
Store min & max as doubles, not floats
Since atof generates doubles, and we use them to compare/limit the values of the double "d", might as well keep them in the same format instead of doing unnecessary conversions. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--transSet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/transSet.c b/transSet.c
index bdcd4f8..9938e79 100644
--- a/transSet.c
+++ b/transSet.c
@@ -129,7 +129,7 @@ main (int argc, char **argv)
Bool flag_verbose = False;
Bool flag_no_regex = False;
int o;
- float min = 0, max = 1;
+ double min = 0.0, max = 1.0;
char *idstr = NULL, *namestr = NULL;
char *windowname = NULL;