From: Jaroslav Kysela Date: Fri, 5 Jun 2020 15:59:31 +0000 (+0200) Subject: amixer: retype to double in convert_prange1() like in convert_prange() X-Git-Tag: v1.2.3~1 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=640d01319b1ba630c1d279295102f72665abafe5;p=alsa-utils.git amixer: retype to double in convert_prange1() like in convert_prange() Signed-off-by: Jaroslav Kysela --- diff --git a/amixer/amixer.c b/amixer/amixer.c index 7f1bb3b..b3b9b48 100644 --- a/amixer/amixer.c +++ b/amixer/amixer.c @@ -203,7 +203,7 @@ static long convert_prange1(long perc, long min, long max) { long tmp; - tmp = rint(perc * (max - min) * 0.01); + tmp = rint((double)perc * (double)(max - min) * 0.01); if (tmp == 0 && perc > 0) tmp++; return tmp + min;