From 69c507c5a73a8af71ea33cd076ea673110d29604 Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 24 Nov 2012 16:54:03 +0000 Subject: [PATCH] Add cast for mve play cvt malloc --- d2x-rebirth/libmve/mveplay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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