From 159b415af0325ec385cae167727964c45285702b Mon Sep 17 00:00:00 2001 From: John Melas Date: Fri, 18 Dec 2020 16:53:35 +0200 Subject: [PATCH] fix signed/unsigned mismatch warning --- src/hostapi/wasapi/pa_win_wasapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.43.0