Fix a compilation error in the C++ build.

This commit is contained in:
David Reid
2020-05-24 16:12:44 +10:00
parent 237f5a6152
commit 069a436f3a
+1 -1
View File
@@ -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;
}