[gnome-flashback] sound-applet: fix double-promotion warnings
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] sound-applet: fix double-promotion warnings
- Date: Wed, 12 Sep 2018 11:55:10 +0000 (UTC)
commit 4a45562f332a7c1b1ff445f67ee248ce8382d64f
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Sep 9 01:12:23 2018 +0300
sound-applet: fix double-promotion warnings
gnome-flashback/libsound-applet/gvc-stream-status-icon.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnome-flashback/libsound-applet/gvc-stream-status-icon.c
b/gnome-flashback/libsound-applet/gvc-stream-status-icon.c
index f9bdffa..d7f8534 100644
--- a/gnome-flashback/libsound-applet/gvc-stream-status-icon.c
+++ b/gnome-flashback/libsound-applet/gvc-stream-status-icon.c
@@ -427,20 +427,20 @@ update_icon (GvcStreamStatusIcon *icon)
markup = g_strdup_printf (
"<b>%s: %.0f%%</b>\n<small>%0.2f dB\n%s</small>",
icon->priv->display_name,
- 100 * (float)volume / PA_VOLUME_NORM,
+ 100 * (double) volume / PA_VOLUME_NORM,
db,
gvc_mixer_stream_get_description (icon->priv->mixer_stream));
} else if (can_decibel) {
markup = g_strdup_printf (
"<b>%s: %.0f%%</b>\n<small>-∞ dB\n%s</small>",
icon->priv->display_name,
- 100 * (float)volume / PA_VOLUME_NORM,
+ 100 * (double) volume / PA_VOLUME_NORM,
gvc_mixer_stream_get_description (icon->priv->mixer_stream));
} else {
markup = g_strdup_printf (
"<b>%s: %.0f%%</b>\n<small>%s</small>",
icon->priv->display_name,
- 100 * (float)volume / PA_VOLUME_NORM,
+ 100 * (double) volume / PA_VOLUME_NORM,
gvc_mixer_stream_get_description (icon->priv->mixer_stream));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]