diff --git a/d2x-rebirth/libmve/mveplay.c b/d2x-rebirth/libmve/mveplay.c index f681412ba..4ec670c93 100644 --- a/d2x-rebirth/libmve/mveplay.c +++ b/d2x-rebirth/libmve/mveplay.c @@ -476,7 +476,7 @@ static int audio_data_handler(unsigned char major, unsigned char minor, unsigned out_format, out_channels, out_freq); clen = nsamp * cvt.len_mult; - cvt.buf = malloc(clen); + cvt.buf = (Uint8 *) malloc(clen); cvt.len = nsamp; // read the audio buffer into the conversion buffer