diff options
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/backends/null.c | 4 | ||||
-rw-r--r-- | Alc/threads.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Alc/backends/null.c b/Alc/backends/null.c index af68c585..ecf827a9 100644 --- a/Alc/backends/null.c +++ b/Alc/backends/null.c @@ -70,8 +70,8 @@ static ALuint ALCnullBackend_mixerProc(ALvoid *ptr) } if(avail-done < device->UpdateSize) { - ALuint restTime = (device->UpdateSize - (avail-done)) * 1000 / - device->Frequency; + ALuint restTime = (ALuint)((device->UpdateSize - (avail-done)) * 1000 / + device->Frequency); Sleep(restTime); continue; } diff --git a/Alc/threads.c b/Alc/threads.c index 1c422949..64586ae9 100644 --- a/Alc/threads.c +++ b/Alc/threads.c @@ -105,7 +105,7 @@ void SetThreadName(const char *name) info.dwFlags = 0; __try { - RaiseException(MS_VC_EXCEPTION, 0, sizeof(info)/sizeof(DWORD), (DWORD*)&info); + RaiseException(MS_VC_EXCEPTION, 0, sizeof(info)/sizeof(DWORD), (ULONG_PTR*)&info); } __except(EXCEPTION_CONTINUE_EXECUTION) { } |