[metacity] libmetacity: avoid implicit conversion warnings
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] libmetacity: avoid implicit conversion warnings
- Date: Sun, 11 Mar 2018 14:18:57 +0000 (UTC)
commit 5dff6be922e5a2131bcabc301d118c6379d58ef6
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 11 12:54:15 2018 +0200
libmetacity: avoid implicit conversion warnings
warning: implicit conversion from ‘float’ to ‘double’ to match
other operand of binary expression [-Wdouble-promotion]
libmetacity/meta-theme-metacity.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libmetacity/meta-theme-metacity.c b/libmetacity/meta-theme-metacity.c
index 37c604d..aed09cf 100644
--- a/libmetacity/meta-theme-metacity.c
+++ b/libmetacity/meta-theme-metacity.c
@@ -5214,7 +5214,7 @@ clip_to_rounded_corners (cairo_t *cr,
cairo_line_to (cr, x, y + radius);
cairo_arc (cr, x + radius, y + radius, radius,
- 180.0f * G_PI / 180.0f, 270.0f * G_PI / 180.0f);
+ 180.0 * G_PI / 180.0, 270.0 * G_PI / 180.0);
}
else
cairo_line_to (cr, x, y);
@@ -5226,7 +5226,7 @@ clip_to_rounded_corners (cairo_t *cr,
cairo_line_to (cr, x + width - radius, y);
cairo_arc (cr, x + width - radius, y + radius, radius,
- -90.0f * G_PI / 180.0f, 0.0f * G_PI / 180.0f);
+ -90.0 * G_PI / 180.0, 0.0 * G_PI / 180.0);
}
else
cairo_line_to (cr, x + width, y);
@@ -5238,7 +5238,7 @@ clip_to_rounded_corners (cairo_t *cr,
cairo_line_to (cr, x + width, y + height - radius);
cairo_arc (cr, x + width - radius, y + height - radius, radius,
- 0.0f * G_PI / 180.0f, 90.0f * G_PI / 180.0f);
+ 0.0 * G_PI / 180.0, 90.0 * G_PI / 180.0);
}
else
cairo_line_to (cr, x + width, y + height);
@@ -5250,7 +5250,7 @@ clip_to_rounded_corners (cairo_t *cr,
cairo_line_to (cr, x + radius, y + height);
cairo_arc (cr, x + radius, y + height - radius, radius,
- 90.0f * G_PI / 180.0f, 180.0f * G_PI / 180.0f);
+ 90.0 * G_PI / 180.0, 180.0 * G_PI / 180.0);
}
else
cairo_line_to (cr, x, y + height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]