summaryrefslogtreecommitdiff
path: root/alsamixer
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-06-03 14:28:28 +0200
committerTakashi Iwai <tiwai@suse.de>2011-06-03 14:28:28 +0200
commit3bea722b3bfdbec2e26218aca66e55b019a24436 (patch)
tree6f00271c97927b745e95824dfdaa7a773cf34e77 /alsamixer
parentac2be7b33ad1ece1dd031d54be1a17a5f902cece (diff)
alsamixer: Fix 64bit issues
lrint() returns a long int. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'alsamixer')
-rw-r--r--alsamixer/mixer_display.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/alsamixer/mixer_display.c b/alsamixer/mixer_display.c
index 51a1546..8ba396a 100644
--- a/alsamixer/mixer_display.c
+++ b/alsamixer/mixer_display.c
@@ -486,17 +486,17 @@ static void display_control(unsigned int control_index)
if (control->flags & IS_ACTIVE)
wattrset(mixer_widget.window, attr_mixer_active);
if (!(control->flags & HAS_VOLUME_1)) {
- sprintf(buf, "%d", lrint(volumes[0] * 100));
+ sprintf(buf, "%d", (int)lrint(volumes[0] * 100));
display_string_in_field(values_y, frame_left - 2, buf, 8, ALIGN_CENTER);
} else {
mvwprintw(mixer_widget.window, values_y, frame_left - 2,
- "%3d", lrint(volumes[0] * 100));
+ "%3d", (int)lrint(volumes[0] * 100));
if (control->flags & IS_ACTIVE)
wattrset(mixer_widget.window, attr_ctl_frame);
waddstr(mixer_widget.window, "<>");
if (control->flags & IS_ACTIVE)
wattrset(mixer_widget.window, attr_mixer_active);
- wprintw(mixer_widget.window, "%-3d", lrint(volumes[1] * 100));
+ wprintw(mixer_widget.window, "%-3d", (int)lrint(volumes[1] * 100));
}
}