diff --git a/src/Nazara/Audio/SoundBuffer.cpp b/src/Nazara/Audio/SoundBuffer.cpp index 10edc74f8..c01878383 100644 --- a/src/Nazara/Audio/SoundBuffer.cpp +++ b/src/Nazara/Audio/SoundBuffer.cpp @@ -105,7 +105,7 @@ namespace Nz m_impl = new SoundBufferImpl; m_impl->buffer = buffer; - m_impl->duration = (1000*sampleCount / (format * sampleRate)); + m_impl->duration = static_cast((1000ULL*sampleCount / (format * sampleRate))); m_impl->format = format; m_impl->sampleCount = sampleCount; m_impl->sampleRate = sampleRate;