]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_mix.c
make DP compile with C++ again
[xonotic/darkplaces.git] / snd_mix.c
index 2fa5878efd647fa96a5f883f089a029e5ac4aeaa..e0c127bd1dac83c27b8da7522039713d39c8672f 100644 (file)
--- a/snd_mix.c
+++ b/snd_mix.c
@@ -455,7 +455,7 @@ void S_MixToBuffer(void *stream, unsigned int bufferframes)
        unsigned int i;
        channel_t *ch;
        unsigned int frames;
-       unsigned char *outbytes = stream;
+       unsigned char *outbytes = (unsigned char *) stream;
 
        // mix as many times as needed to fill the requested buffer
        while (bufferframes)