aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-04-12 04:06:17 +0000
committerEric Wong <normalperson@yhbt.net>2008-04-12 04:06:17 +0000
commit665eab26f371e7f21df9955d1d72bbfa41ca989d (patch)
tree99c935c0e6de3bc3e1eb09f474bfafaf5424e597 /src
parentfe36122c8cc636607735faeaefcbf01c5d096e32 (diff)
downloadmpd-665eab26f371e7f21df9955d1d72bbfa41ca989d.tar.gz
mpd-665eab26f371e7f21df9955d1d72bbfa41ca989d.tar.xz
mpd-665eab26f371e7f21df9955d1d72bbfa41ca989d.zip
use unsigned integers in decoder.c
Use unsigned integers in decoderParent() for chunk numbers which cannot be negative. git-svn-id: https://svn.musicpd.org/mpd/trunk@7226 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r--src/decode.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/decode.c b/src/decode.c
index 180212d49..e44e09dc0 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -498,19 +498,19 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer *
{
int pause = 0;
int quit = 0;
- int bbp = buffered_before_play;
+ unsigned int bbp = buffered_before_play;
int doCrossFade = 0;
- int crossFadeChunks = 0;
- int fadePosition;
+ unsigned int crossFadeChunks = 0;
+ unsigned int fadePosition;
int nextChunk = -1;
- int test;
+ unsigned int test;
int decodeWaitedOn = 0;
static const char silence[CHUNK_SIZE];
double sizeToTime = 0.0;
int previousMetadataChunk = -1;
MetadataChunk currentMetadataChunk;
int currentChunkSent = 1;
- int end;
+ unsigned int end;
int next = -1;
if (waitOnDecode(pc, dc, cb, &decodeWaitedOn) < 0)