]> Repos - portaudio/commitdiff
fix signed/unsigned mismatch warning
authorJohn Melas <john@jmelas.gr>
Fri, 18 Dec 2020 14:53:35 +0000 (16:53 +0200)
committerJohn Melas <john@jmelas.gr>
Tue, 29 Dec 2020 15:22:57 +0000 (17:22 +0200)
src/hostapi/wasapi/pa_win_wasapi.c

index d791b666781a512b5865b785535f77c50d776fd5..7eec93e0023d3c009dbd99cde1c59a07d5517f00 100644 (file)
@@ -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)