aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/dsound.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/dsound.c b/Alc/dsound.c
index 147f520c..8d2834c2 100644
--- a/Alc/dsound.c
+++ b/Alc/dsound.c
@@ -478,8 +478,8 @@ static ALCboolean DSoundResetPlayback(ALCdevice *device)
{
if(device->NumUpdates > MAX_UPDATES)
{
- device->UpdateSize = ((ALuint64)device->UpdateSize*MAX_UPDATES +
- device->NumUpdates-1) / device->NumUpdates;
+ device->UpdateSize = (device->UpdateSize*device->NumUpdates +
+ MAX_UPDATES-1) / MAX_UPDATES;
device->NumUpdates = MAX_UPDATES;
}