From 863a519f00bbbd4edad654a297889bf3ae52ddd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 4 Mar 2022 20:49:10 +0100 Subject: [PATCH] clutter/desaturate-effect: Use fabs() with passed double Fixes a warning about passing a double to fabsf(). Part-of: --- clutter/clutter/clutter-desaturate-effect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clutter/clutter/clutter-desaturate-effect.c b/clutter/clutter/clutter-desaturate-effect.c index 4ac60d0e0..5dbf04371 100644 --- a/clutter/clutter/clutter-desaturate-effect.c +++ b/clutter/clutter/clutter-desaturate-effect.c @@ -308,12 +308,12 @@ clutter_desaturate_effect_new (gdouble factor) */ void clutter_desaturate_effect_set_factor (ClutterDesaturateEffect *effect, - gdouble factor) + double factor) { g_return_if_fail (CLUTTER_IS_DESATURATE_EFFECT (effect)); g_return_if_fail (factor >= 0.0 && factor <= 1.0); - if (fabsf (effect->factor - factor) >= 0.00001) + if (fabs (effect->factor - factor) >= 0.00001) { effect->factor = factor; update_factor_uniform (effect);