mirror of
https://github.com/RPCS3/soundtouch.git
synced 2024-11-09 20:33:03 +01:00
Added U for unsigned numeric constant
This commit is contained in:
parent
d64e9ae0d3
commit
32b3084ef7
@ -536,8 +536,8 @@ uint WavInFile::getLengthMS() const
|
||||
numSamples = getNumSamples();
|
||||
sampleRate = getSampleRate();
|
||||
|
||||
assert(numSamples < UINT_MAX / 1000);
|
||||
return (1000 * numSamples / sampleRate);
|
||||
assert(numSamples < UINT_MAX / 1000U);
|
||||
return (1000U * numSamples / sampleRate);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user