From 3651b34e94672cea931578f4b43938ce3d92df88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Fri, 19 Sep 2003 23:46:57 +0000 Subject: [PATCH] Gain display bugfix by Keith Hubbard. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3957 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/recording.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index f8a719db1b..188511c1d1 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c @@ -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;