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
This commit is contained in:
Max Kellermann 2008-01-26 12:46:37 +00:00 committed by Eric Wong
parent 0659d35951
commit c3ba1bb956
5 changed files with 10 additions and 10 deletions

View File

@ -119,7 +119,7 @@ static int myShout_initDriver(AudioOutput * audioOutput, ConfigParam * param)
char *user; char *user;
char *name; char *name;
BlockParam *blockParam; BlockParam *blockParam;
unsigned int public; int public;
sd = newShoutData(); sd = newShoutData();

View File

@ -120,7 +120,7 @@ char *char_conv_str(char *dest, char *string)
iconv(char_conv_iconv, &string, &inleft, &bufferPtr, iconv(char_conv_iconv, &string, &inleft, &bufferPtr,
&outleft); &outleft);
if (outleft == BUFFER_SIZE if (outleft == BUFFER_SIZE
|| (err == -1L && errno != E2BIG)) { || (err == (size_t)-1L && errno != E2BIG)) {
return NULL; return NULL;
} }
memcpy(dest + retlen, buffer, BUFFER_SIZE - outleft); memcpy(dest + retlen, buffer, BUFFER_SIZE - outleft);

View File

@ -44,7 +44,7 @@ static struct {
int target; int target;
int gainmax; int gainmax;
int gainsmooth; int gainsmooth;
int buckets; unsigned buckets;
} prefs; } prefs;
#ifdef USE_X #ifdef USE_X
@ -52,9 +52,9 @@ static int mon_init;
#endif #endif
void CompressCfg(int show_mon, int anticlip, int target, int gainmax, 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.show_mon = show_mon;
prefs.anticlip = anticlip; prefs.anticlip = anticlip;
@ -170,8 +170,8 @@ void CompressFree(void)
void CompressDo(void *data, unsigned int length) void CompressDo(void *data, unsigned int length)
{ {
int16_t *audio = (int16_t *)data, *ap; int16_t *audio = (int16_t *)data, *ap;
int peak, pos; int peak;
int i; unsigned int i, pos;
int gr, gf, gn; int gr, gf, gn;
static int pn = -1; static int pn = -1;
#ifdef STATS #ifdef STATS

View File

@ -38,7 +38,7 @@ void CompressCfg(int monitor,
int target, int target,
int maxgain, int maxgain,
int smooth, int smooth,
int buckets); unsigned buckets);
void CompressDo(void *data, unsigned int numSamples); void CompressDo(void *data, unsigned int numSamples);

View File

@ -492,8 +492,8 @@ enum {
}; };
struct version { struct version {
int major; unsigned major;
int minor; unsigned minor;
}; };
struct lame { struct lame {