From 069a436f3a4872d06abfd43577b3345952067760 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sun, 24 May 2020 16:12:44 +1000 Subject: [PATCH] Fix a compilation error in the C++ build. --- miniaudio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index f0597e72..627f607a 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -40075,7 +40075,7 @@ MA_API ma_result ma_audio_buffer_alloc_and_init(const ma_audio_buffer_config* pC return MA_OUT_OF_MEMORY; /* Too big. */ } - pAudioBuffer = ma__malloc_from_callbacks((size_t)allocationSizeInBytes, &innerConfig.allocationCallbacks); /* Safe cast to size_t. */ + pAudioBuffer = (ma_audio_buffer*)ma__malloc_from_callbacks((size_t)allocationSizeInBytes, &innerConfig.allocationCallbacks); /* Safe cast to size_t. */ if (pAudioBuffer == NULL) { return MA_OUT_OF_MEMORY; }