aboutsummaryrefslogtreecommitdiffstats
path: root/src/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/options.c b/src/options.c
index bbc6435..0f94c3c 100644
--- a/src/options.c
+++ b/src/options.c
@@ -37,7 +37,7 @@
or two values separated by a colon. */
static void
parse_brightness_string(
- const char *str, float *bright_day, float *bright_night)
+ const char *str, double *bright_day, double *bright_night)
{
char *s = strchr(str, ':');
if (s == NULL) {
@@ -53,12 +53,12 @@ parse_brightness_string(
/* A gamma string contains either one floating point value,
or three values separated by colon. */
static int
-parse_gamma_string(const char *str, float gamma[])
+parse_gamma_string(const char *str, double gamma[3])
{
char *s = strchr(str, ':');
if (s == NULL) {
/* Use value for all channels */
- float g = atof(str);
+ double g = atof(str);
gamma[0] = gamma[1] = gamma[2] = g;
} else {
/* Parse separate value for each channel */