amixer: retype to double in convert_prange1() like in convert_prange()

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2020-06-05 17:59:31 +02:00
parent 361734165e
commit 640d01319b

View file

@ -203,7 +203,7 @@ static long convert_prange1(long perc, long min, long max)
{ {
long tmp; long tmp;
tmp = rint(perc * (max - min) * 0.01); tmp = rint((double)perc * (double)(max - min) * 0.01);
if (tmp == 0 && perc > 0) if (tmp == 0 && perc > 0)
tmp++; tmp++;
return tmp + min; return tmp + min;