[mutter] clutter/desaturate-effect: Use fabs() with passed double
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter/desaturate-effect: Use fabs() with passed double
- Date: Fri, 4 Mar 2022 23:38:48 +0000 (UTC)
commit 863a519f00bbbd4edad654a297889bf3ae52ddd8
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Fri Mar 4 20:49:10 2022 +0100
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>
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 4ac60d0e07..5dbf04371e 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]