clutter/desaturate-effect: Use fabs() with passed double

Fixes a warning about passing a double to fabsf().

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2319>
This commit is contained in:
Jonas Ådahl 2022-03-04 20:49:10 +01:00 committed by Marge Bot
parent ad76c60ce3
commit 863a519f00

View File

@ -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);