From: Ross Bencina Date: Sat, 10 Sep 2016 14:16:05 +0000 (+1000) Subject: wmme: fix int/char conversion warning X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=222cd2565fcbecb6268f5f42c632264d15d688ba;p=portaudio wmme: fix int/char conversion warning --- diff --git a/src/hostapi/wmme/pa_win_wmme.c b/src/hostapi/wmme/pa_win_wmme.c index 5f373f5..a3b0cf2 100644 --- a/src/hostapi/wmme/pa_win_wmme.c +++ b/src/hostapi/wmme/pa_win_wmme.c @@ -672,11 +672,11 @@ static void DetectDefaultSampleRate( PaWinMmeDeviceInfo *winMmeDeviceInfo, int w #ifdef PAWIN_USE_WDMKS_DEVICE_INFO -static int QueryWaveInKSFilterMaxChannels( int waveInDeviceId, int *maxChannels ) +static char QueryWaveInKSFilterMaxChannels( int waveInDeviceId, int *maxChannels ) { void *devicePath; DWORD devicePathSize; - int result = 0; + char result = 0; if( waveInMessage((HWAVEIN)waveInDeviceId, DRV_QUERYDEVICEINTERFACESIZE, (DWORD_PTR)&devicePathSize, 0 ) != MMSYSERR_NOERROR )