diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2018-03-11 12:58:26 +0200 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2018-03-11 12:58:26 +0200 |
commit | 6c8a86bc4c5e5b2a76bab28d1a0b124dd6915144 (patch) | |
tree | 4dabb8d24a57ccf0c91d6daa62eb3639e8e368db | |
parent | 5dff6be922e5a2131bcabc301d118c6379d58ef6 (diff) | |
download | metacity-6c8a86bc4c5e5b2a76bab28d1a0b124dd6915144.tar.gz |
frames: avoid implicit conversion warnings
warning: implicit conversion from ‘float’ to ‘double’ to match
other operand of binary expression [-Wdouble-promotion]
-rw-r--r-- | 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 9db27bf4..a705ba5b 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++) |