1
0
mirror of https://github.com/RPCS3/soundtouch.git synced 2024-11-10 04:42:50 +01:00

Added U for unsigned numeric constant

This commit is contained in:
oparviai 2011-12-31 09:54:02 +00:00
parent d64e9ae0d3
commit 32b3084ef7

View File

@ -536,8 +536,8 @@ uint WavInFile::getLengthMS() const
numSamples = getNumSamples(); numSamples = getNumSamples();
sampleRate = getSampleRate(); sampleRate = getSampleRate();
assert(numSamples < UINT_MAX / 1000); assert(numSamples < UINT_MAX / 1000U);
return (1000 * numSamples / sampleRate); return (1000U * numSamples / sampleRate);
} }