diff options
author | Chris Robinson <[email protected]> | 2019-02-11 12:16:58 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-02-11 12:16:58 -0800 |
commit | 69f6f561607a3c1c7d6947cb6ba98682df807051 (patch) | |
tree | 9a0edda3711f82913ccd5c9b8da1eb20b873f651 /Alc/backends/winmm.cpp | |
parent | 2fc8461c14074c7f19d6c226e1beaf55aed441a0 (diff) |
Avoid using internal AL[u]int64 types
Diffstat (limited to 'Alc/backends/winmm.cpp')
-rw-r--r-- | Alc/backends/winmm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/backends/winmm.cpp b/Alc/backends/winmm.cpp index 34eade29..89f0e866 100644 --- a/Alc/backends/winmm.cpp +++ b/Alc/backends/winmm.cpp @@ -265,8 +265,8 @@ retry_open: ALCboolean WinMMPlayback::reset() { - mDevice->UpdateSize = static_cast<ALuint>( - (ALuint64)mDevice->UpdateSize * mFormat.nSamplesPerSec / mDevice->Frequency); + mDevice->UpdateSize = static_cast<ALuint>(uint64_t{mDevice->UpdateSize} * + mFormat.nSamplesPerSec / mDevice->Frequency); mDevice->UpdateSize = (mDevice->UpdateSize*mDevice->NumUpdates + 3) / 4; mDevice->NumUpdates = 4; mDevice->Frequency = mFormat.nSamplesPerSec; |