Use float to avoid overflow

This commit is contained in:
Jaroslav Kysela 2003-08-11 09:42:16 +00:00
parent cb8494d8d4
commit 340b2ca3c9

View file

@ -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;