[metacity] frames: avoid implicit conversion warnings
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] frames: avoid implicit conversion warnings
- Date: Sun, 11 Mar 2018 14:19:02 +0000 (UTC)
commit 6c8a86bc4c5e5b2a76bab28d1a0b124dd6915144
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 11 12:58:26 2018 +0200
frames: avoid implicit conversion warnings
warning: implicit conversion from ‘float’ to ‘double’ to match
other operand of binary expression [-Wdouble-promotion]
src/ui/frames.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/ui/frames.c b/src/ui/frames.c
index 9db27bf..a705ba5 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -940,7 +940,7 @@ get_visible_region (MetaFrames *frames,
if (fgeom->top_left_corner_rounded_radius != 0)
{
const int corner = fgeom->top_left_corner_rounded_radius;
- const float radius = sqrt(corner) + corner;
+ const gdouble radius = sqrt (corner) + corner;
int i;
for (i=0; i<corner; i++)
@@ -958,7 +958,7 @@ get_visible_region (MetaFrames *frames,
if (fgeom->top_right_corner_rounded_radius != 0)
{
const int corner = fgeom->top_right_corner_rounded_radius;
- const float radius = sqrt(corner) + corner;
+ const gdouble radius = sqrt (corner) + corner;
int i;
for (i=0; i<corner; i++)
@@ -976,7 +976,7 @@ get_visible_region (MetaFrames *frames,
if (fgeom->bottom_left_corner_rounded_radius != 0)
{
const int corner = fgeom->bottom_left_corner_rounded_radius;
- const float radius = sqrt(corner) + corner;
+ const gdouble radius = sqrt (corner) + corner;
int i;
for (i=0; i<corner; i++)
@@ -994,7 +994,7 @@ get_visible_region (MetaFrames *frames,
if (fgeom->bottom_right_corner_rounded_radius != 0)
{
const int corner = fgeom->bottom_right_corner_rounded_radius;
- const float radius = sqrt(corner) + corner;
+ const gdouble radius = sqrt (corner) + corner;
int i;
for (i=0; i<corner; i++)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]