mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:05:42 +01:00
amixer: retype to double in convert_prange1() like in convert_prange()
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
361734165e
commit
640d01319b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue