]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_mix.c
don't check mod_collision_bih in r_showcollisionbrushes because the old
[xonotic/darkplaces.git] / snd_mix.c
index 30e5a523e3f4749ba46d2d50f0c2236f89efadfe..79e6e0738803091e83f3ad084e286bc46c5fcb6f 100644 (file)
--- 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);