From 5acd6143f8209d3d5a07c74caef874862614a781 Mon Sep 17 00:00:00 2001 From: eihrul Date: Mon, 1 Feb 2010 06:29:40 +0000 Subject: [PATCH] fix unsigned vs. signed comparison warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9912 d7cf8633-e32d-0410-b094-e92efae38249 --- snd_mix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.39.2