diff options
author | Dominik Jasiok <yahoo.com.pl@gmail.com> | 2009-12-22 10:48:04 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-12-22 10:48:04 -0800 |
commit | 27f86db064a5ea60b942fd3d3ddeb462d980df9b (patch) | |
tree | 3af9b3e95d794c6e43c2d27b9e3e6e98de6d50e2 | |
parent | df254d851cae1dcd1032e307bc828a5800e7342c (diff) |
xrandr: check_strtod should return double, not int
check_strtod performs error checking around strtod to ensure that
arguments are correctly processed. However, it also accidentally(?)
cast the result to int, which was then universally cast back to double
by all callers. Narrowing and re-widening the type doesn't make any sense.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | xrandr.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2010,7 +2010,7 @@ check_strtol(char *s) return result; } -static int +static double check_strtod(char *s) { char *endptr; |