Commit 1eee750b authored by Emmanuele Bassi's avatar Emmanuele Bassi

Promote single precision floats to doubles

The AX_COMPILER_FLAGS m4 macro has suddenly gained the extremely
unhelpful `-Werror=double-promotion` default compiler flag, thus
breaking the build.
parent 7d8f903e
...@@ -396,17 +396,18 @@ wnck_task_button_glow (WnckTask *task) ...@@ -396,17 +396,18 @@ wnck_task_button_glow (WnckTask *task)
if (task->button_glow == 0) if (task->button_glow == 0)
{ {
/* we're in "has stopped glowing" mode */ /* we're in "has stopped glowing" mode */
task->glow_factor = fade_opacity * 0.5; task->glow_factor = (gdouble) fade_opacity * 0.5;
stopped = TRUE; stopped = TRUE;
} }
else else
{ {
task->glow_factor = fade_opacity * (0.5 - task->glow_factor =
0.5 * cos ((now - task->glow_start_time) * (gdouble) fade_opacity * (0.5 -
M_PI * 2.0 / loop_time)); 0.5 * cos ((now - task->glow_start_time) *
M_PI * 2.0 / (gdouble) loop_time));
if (now - task->start_needs_attention > loop_time * 1.0 * fade_max_loops) if (now - task->start_needs_attention > (gdouble) loop_time * 1.0 * fade_max_loops)
stopped = ABS (task->glow_factor - fade_opacity * 0.5) < 0.05; stopped = ABS (task->glow_factor - (gdouble) fade_opacity * 0.5) < 0.05;
else else
stopped = FALSE; stopped = FALSE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment