From 665eab26f371e7f21df9955d1d72bbfa41ca989d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 12 Apr 2008 04:06:17 +0000 Subject: 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 --- src/decode.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/decode.c') 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) -- cgit v1.2.3