From: eihrul Date: Mon, 1 Feb 2010 06:29:40 +0000 (+0000) Subject: fix unsigned vs. signed comparison warnings X-Git-Tag: xonotic-v0.1.0preview~230^2~557 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=5acd6143f8209d3d5a07c74caef874862614a781 fix unsigned vs. signed comparison warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9912 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/snd_mix.c b/snd_mix.c index 30e5a523..79e6e073 100644 --- a/snd_mix.c +++ b/snd_mix.c @@ -482,16 +482,16 @@ void S_MixToBuffer(void *stream, unsigned int bufferframes) if (ch->pos < 0) { count = -ch->pos; - count = min(count, frames - ltime); + count = min(count, (int)frames - ltime); ch->pos += count; ltime += count; } - while (ltime < frames) + while (ltime < (int)frames) { // paint up to end of buffer or of input, whichever is lower count = sfx->total_length - ch->pos; - count = bound(0, count, frames - ltime); + count = bound(0, count, (int)frames - ltime); if (count) { SND_PaintChannel (ch, paintbuffer + ltime, count);