[gnome-power-manager] trivial: Fix a warning when using abs() on doubles
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-power-manager] trivial: Fix a warning when using abs() on doubles
- Date: Thu, 7 Feb 2019 10:35:43 +0000 (UTC)
commit dbb4dfb2882dd436a1294b9172b5892f07d83589
Author: Richard Hughes <richard hughsie com>
Date: Thu Feb 7 10:26:46 2019 +0000
trivial: Fix a warning when using abs() on doubles
src/egg-graph-widget.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/egg-graph-widget.c b/src/egg-graph-widget.c
index e0638160..7c2fc9ed 100644
--- a/src/egg-graph-widget.c
+++ b/src/egg-graph-widget.c
@@ -801,7 +801,7 @@ egg_graph_widget_autorange_y (EggGraphWidget *graph)
* positive parts */
if (priv->start_y < 0.f && priv->stop_y > 0.f &&
priv->type_y == EGG_GRAPH_WIDGET_KIND_FACTOR) {
- if (abs (priv->stop_y) > abs (priv->start_y))
+ if (fabs (priv->stop_y) > fabs (priv->start_y))
priv->start_y = -priv->stop_y;
else
priv->stop_y = -priv->start_y;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]