Gain display bugfix by Keith Hubbard.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3957 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2003-09-19 23:46:57 +00:00
parent fad8f2c8c8
commit 3651b34e94

View file

@ -111,7 +111,7 @@ char *fmt_gain(int snd, int val, char *str, int len)
unit = mpeg_sound_unit(snd);
i = tmp / (10*numdec);
d = tmp % (10*numdec);
d = abs(tmp % (10*numdec));
snprintf(str, len, fmtstr[numdec], i, d, unit);
return str;