[metacity] metaaccellabel: avoid implicit conversion warning
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] metaaccellabel: avoid implicit conversion warning
- Date: Sun, 11 Mar 2018 14:19:23 +0000 (UTC)
commit 453faa20b262f4bb20fa0b5fd9389a7fb16e0921
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 11 13:55:23 2018 +0200
metaaccellabel: avoid implicit conversion warning
warning: implicit conversion from ‘gfloat {aka float}’ to ‘double’
to match other operand of binary expression [-Wdouble-promotion]
src/ui/metaaccellabel.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ui/metaaccellabel.c b/src/ui/metaaccellabel.c
index 48f562e..8e6f2a4 100644
--- a/src/ui/metaaccellabel.c
+++ b/src/ui/metaaccellabel.c
@@ -258,7 +258,7 @@ meta_accel_label_draw (GtkWidget *widget,
GtkLabel *label = GTK_LABEL (widget);
gint x, y, xpad, ypad;
gint margin_start, margin_end, margin_top, margin_bottom;
- gfloat yalign;
+ gdouble yalign;
label_layout = gtk_label_get_layout (GTK_LABEL (accel_label));
yalign = gtk_label_get_yalign (GTK_LABEL (accel_label));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]