From b7f275efb3a0c5ef18e4bfcede6f30b979059e59 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 15 Jan 2021 00:20:23 +0100 Subject: [PATCH] Review warning --- src/raudio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raudio.c b/src/raudio.c index fdf9883e..f4ae9efa 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -1966,13 +1966,13 @@ static int SaveWAV(Wave wave, const char *fileName) format.sampleRate = wave.sampleRate; format.bitsPerSample = wave.sampleSize; - unsigned char *fileData = NULL; + void *fileData = NULL; size_t fileDataSize = 0; success = drwav_init_memory_write(&wav, &fileData, &fileDataSize, &format, NULL); if (success) success = (int)drwav_write_pcm_frames(&wav, wave.sampleCount/wave.channels, wave.data); drwav_result result = drwav_uninit(&wav); - if (result == DRWAV_SUCCESS) success = SaveFileData(fileName, fileData, (unsigned int)fileDataSize); + if (result == DRWAV_SUCCESS) success = SaveFileData(fileName, (unsigned char *)fileData, (unsigned int)fileDataSize); drwav_free(fileData, NULL);