From a2181a5e68f88241de4f33633ce38f5ea8b32351 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sun, 16 Jul 2017 21:24:58 +1000 Subject: [PATCH] Fix C++ build. --- mini_al.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mini_al.h b/mini_al.h index bcd73db1..b94ce1e3 100644 --- a/mini_al.h +++ b/mini_al.h @@ -4082,7 +4082,7 @@ static mal_result mal_device_init__winmm(mal_context* pContext, mal_device_type pDevice->winmm.fragmentSizeInBytes = pDevice->winmm.fragmentSizeInFrames * pDevice->internalChannels * mal_get_sample_size_in_bytes(pDevice->internalFormat); mal_uint32 heapSize = (sizeof(WAVEHDR) * pDevice->periods) + (pDevice->winmm.fragmentSizeInBytes * pDevice->periods); - pDevice->winmm._pHeapData = mal_malloc(heapSize); + pDevice->winmm._pHeapData = (mal_uint8*)mal_malloc(heapSize); if (pDevice->winmm._pHeapData == NULL) { errorMsg = "[WinMM] Failed to allocate memory for the intermediary buffer.", errorCode = MAL_OUT_OF_MEMORY; goto on_error;