aboutsummaryrefslogtreecommitdiffstats
path: root/src/redshift.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/redshift.c')
-rw-r--r--src/redshift.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/redshift.c b/src/redshift.c
index 818db4e..8fb2ddf 100644
--- a/src/redshift.c
+++ b/src/redshift.c
@@ -338,15 +338,15 @@ print_period(double elevation)
}
/* Interpolate value based on the specified solar elevation. */
-static float
-calculate_interpolated_value(double elevation, float day, float night)
+static double
+calculate_interpolated_value(double elevation, double day, double night)
{
- float result;
+ double result;
if (elevation < transition_low) {
result = night;
} else if (elevation < transition_high) {
/* Transition period: interpolate */
- float a = (transition_low - elevation) /
+ double a = (transition_low - elevation) /
(transition_low - transition_high);
result = (1.0-a)*night + a*day;
} else {