From 1dda35e67ad6a962775ee7cadd4c88fa6cd876b3 Mon Sep 17 00:00:00 2001
From: eihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
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
::stable-branch::merge=5acd6143f8209d3d5a07c74caef874862614a781
---
 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.5