aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-10-28 12:12:26 -0700
committerChris Robinson <[email protected]>2013-10-28 12:12:26 -0700
commit0617df9b5f6dd2b01d248edd0b4ad989d1c343f8 (patch)
tree805caca7623dc5f7dc3a3d20bac2db412e606d56 /Alc
parentf24cb447818ea21ff5a5d80d6396abb4723fd2ed (diff)
Fix a couple casts
Diffstat (limited to 'Alc')
-rw-r--r--Alc/backends/null.c4
-rw-r--r--Alc/threads.c2
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) {
}