From: John Melas Date: Fri, 18 Dec 2020 14:53:35 +0000 (+0200) Subject: fix signed/unsigned mismatch warning X-Git-Tag: v19.7.0~67^2 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=159b415af0325ec385cae167727964c45285702b;p=portaudio fix signed/unsigned mismatch warning --- diff --git a/src/hostapi/wasapi/pa_win_wasapi.c b/src/hostapi/wasapi/pa_win_wasapi.c index d791b66..7eec93e 100644 --- a/src/hostapi/wasapi/pa_win_wasapi.c +++ b/src/hostapi/wasapi/pa_win_wasapi.c @@ -841,8 +841,8 @@ static BOOL SystemTimer_SetGranularity(SystemTimer *timer, UINT32 granularity) if (timeGetDevCaps(&caps, sizeof(caps)) == MMSYSERR_NOERROR) { - if (timer->granularity < caps.wPeriodMin) - timer->granularity = caps.wPeriodMin; + if (timer->granularity < (INT32)caps.wPeriodMin) + timer->granularity = (INT32)caps.wPeriodMin; } if (timeBeginPeriod(timer->granularity) != TIMERR_NOERROR)