Merge pull request #376 from jmelas/wasapi_mismatch
wasapi: Fix signed/unsigned mismatch warning.
This commit is contained in:
commit
d6fc190012
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue