[gnome-flashback] notifications: fix double-promotion warnings
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] notifications: fix double-promotion warnings
- Date: Wed, 12 Sep 2018 11:54:49 +0000 (UTC)
commit 3547e42f818d3f9bef342ac06ce5f65186f89d9b
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Sep 9 01:10:20 2018 +0300
notifications: fix double-promotion warnings
gnome-flashback/libnotifications/gf-bubble.c | 2 +-
gnome-flashback/libnotifications/nd-notification.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-flashback/libnotifications/gf-bubble.c b/gnome-flashback/libnotifications/gf-bubble.c
index d224178..9f85082 100644
--- a/gnome-flashback/libnotifications/gf-bubble.c
+++ b/gnome-flashback/libnotifications/gf-bubble.c
@@ -218,7 +218,7 @@ scale_pixbuf (GdkPixbuf *pixbuf,
if (scale_factor_x > scale_factor_y)
scale_factor = scale_factor_y;
- if (scale_factor < 1.0)
+ if (scale_factor < 1.0f)
{
gint scale_x;
gint scale_y;
diff --git a/gnome-flashback/libnotifications/nd-notification.c
b/gnome-flashback/libnotifications/nd-notification.c
index 9542aa1..544c395 100644
--- a/gnome-flashback/libnotifications/nd-notification.c
+++ b/gnome-flashback/libnotifications/nd-notification.c
@@ -496,7 +496,7 @@ scale_pixbuf (GdkPixbuf *pixbuf,
}
/* always scale down, allow to disable scaling up */
- if (scale_factor < 1.0 || !no_stretch_hint) {
+ if (scale_factor < 1.0f || !no_stretch_hint) {
int scale_x;
int scale_y;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]