summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-hsv.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-02-02 16:04:02 +0100
committerraveit65 <[email protected]>2021-02-27 22:36:33 +0100
commit25f29868150a992fa0d11e6944d720c9daadb530 (patch)
treef5cd44ab896812cd78e8b4f3a2b2b775af96f5d4 /libmate-desktop/mate-hsv.c
parent95e62346209b6a20965ebce7bbcd5b9a31d73ad3 (diff)
downloadmate-desktop-25f29868150a992fa0d11e6944d720c9daadb530.tar.bz2
mate-desktop-25f29868150a992fa0d11e6944d720c9daadb530.tar.xz
Remove warning -Wbad-function-cast
Diffstat (limited to 'libmate-desktop/mate-hsv.c')
-rw-r--r--libmate-desktop/mate-hsv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmate-desktop/mate-hsv.c b/libmate-desktop/mate-hsv.c
index 6cb7e9a..9b59608 100644
--- a/libmate-desktop/mate-hsv.c
+++ b/libmate-desktop/mate-hsv.c
@@ -825,9 +825,9 @@ paint_ring (MateHSV *hsv,
b = 1.0;
hsv_to_rgb (&r, &g, &b);
- *p++ = (((int)floor (r * 255 + 0.5) << 16) |
- ((int)floor (g * 255 + 0.5) << 8) |
- (int)floor (b * 255 + 0.5));
+ *p++ = (((int)(r * 255.0) << 16) |
+ ((int)(g * 255.0) << 8) |
+ (int)(b * 255.0));
}
}