From de103ecc5e4890c3a830245c9ca3283ed2d739dd Mon Sep 17 00:00:00 2001 From: bugcaptor Date: Thu, 2 Mar 2017 10:07:09 +0900 Subject: [PATCH] fix for audio.c(607): error C2036: 'void *': unknown size in Visual Studio 2015. --- src/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio.c b/src/audio.c index 690a41eb..128781a4 100644 --- a/src/audio.c +++ b/src/audio.c @@ -604,7 +604,7 @@ void WaveCrop(Wave *wave, int initSample, int finalSample) void *data = malloc(sampleCount*wave->channels*wave->sampleSize/8); - memcpy(data, wave->data + (initSample*wave->channels*wave->sampleSize/8), sampleCount*wave->channels*wave->sampleSize/8); + memcpy(data, (unsigned char*)wave->data + (initSample*wave->channels*wave->sampleSize/8), sampleCount*wave->channels*wave->sampleSize/8); free(wave->data); wave->data = data;