mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 03:35:42 +01:00
Use float to avoid overflow
This commit is contained in:
parent
cb8494d8d4
commit
340b2ca3c9
1 changed files with 1 additions and 1 deletions
|
@ -468,7 +468,7 @@ mixer_cbar_get_pos (int elem_index,
|
|||
static int
|
||||
mixer_conv(int val, int omin, int omax, int nmin, int nmax)
|
||||
{
|
||||
int orange = omax - omin, nrange = nmax - nmin;
|
||||
float orange = omax - omin, nrange = nmax - nmin;
|
||||
|
||||
if (orange == 0)
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue