diff options
-rw-r--r-- | src/i_sdlsound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i_sdlsound.c b/src/i_sdlsound.c index 70f45470..e10cb5ee 100644 --- a/src/i_sdlsound.c +++ b/src/i_sdlsound.c @@ -143,7 +143,7 @@ static void ExpandSoundData(byte *data, // number of samples in the converted sound - expanded_length = (length * mixer_freq) / samplerate; + expanded_length = ((uint64_t) length * mixer_freq) / samplerate; expand_ratio = (length << 8) / expanded_length; for (i=0; i<expanded_length; ++i) |