From 5161351ca3eafa8026e93a23b82b893b472da33c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 18 Jul 2016 01:47:03 -0400 Subject: [PATCH] EXI_DeviceMic: Don't cast away const in Pa_Callback --- Source/Core/Core/HW/EXI_DeviceMic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/EXI_DeviceMic.cpp b/Source/Core/Core/HW/EXI_DeviceMic.cpp index 4115fe6497..27d8ec1d17 100644 --- a/Source/Core/Core/HW/EXI_DeviceMic.cpp +++ b/Source/Core/Core/HW/EXI_DeviceMic.cpp @@ -59,7 +59,7 @@ static int Pa_Callback(const void* inputBuffer, void* outputBuffer, unsigned lon if (mic->stream_wpos + mic->buff_size_samples > mic->stream_size) mic->stream_wpos = 0; - s16* buff_in = (s16*)inputBuffer; + const s16* buff_in = static_cast(inputBuffer); s16* buff_out = &mic->stream_buffer[mic->stream_wpos]; if (buff_in == nullptr)