diff options
author | Max Kellermann <max@duempel.org> | 2008-01-26 12:46:37 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-01-26 12:46:37 +0000 |
commit | c3ba1bb95670abd4ba64445fa7edaea9cfa9e387 (patch) | |
tree | 0e1374c65c72892b075b7ce841b05a9a04751f7f /src/compress.c | |
parent | 0659d359513107e3ed4b66a471f3cb3939a09521 (diff) | |
download | mpd-c3ba1bb95670abd4ba64445fa7edaea9cfa9e387.tar.gz mpd-c3ba1bb95670abd4ba64445fa7edaea9cfa9e387.tar.xz mpd-c3ba1bb95670abd4ba64445fa7edaea9cfa9e387.zip |
fixed "comparison between signed and unsigned"
Signed-off-by: Eric Wong <normalperson@yhbt.net>
git-svn-id: https://svn.musicpd.org/mpd/trunk@7146 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/compress.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/compress.c b/src/compress.c index 7e526dc7a..2f7719356 100644 --- a/src/compress.c +++ b/src/compress.c @@ -44,7 +44,7 @@ static struct { int target; int gainmax; int gainsmooth; - int buckets; + unsigned buckets; } prefs; #ifdef USE_X @@ -52,9 +52,9 @@ static int mon_init; #endif void CompressCfg(int show_mon, int anticlip, int target, int gainmax, - int gainsmooth, int buckets) + int gainsmooth, unsigned buckets) { - static int lastsize; + static unsigned lastsize; prefs.show_mon = show_mon; prefs.anticlip = anticlip; @@ -170,8 +170,8 @@ void CompressFree(void) void CompressDo(void *data, unsigned int length) { int16_t *audio = (int16_t *)data, *ap; - int peak, pos; - int i; + int peak; + unsigned int i, pos; int gr, gf, gn; static int pn = -1; #ifdef STATS |