From 32b3084ef74be4742d173f0bc6323f403c5a40ab Mon Sep 17 00:00:00 2001 From: oparviai Date: Sat, 31 Dec 2011 09:54:02 +0000 Subject: [PATCH] Added U for unsigned numeric constant --- source/SoundStretch/WavFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/SoundStretch/WavFile.cpp b/source/SoundStretch/WavFile.cpp index c02092b..6478800 100644 --- a/source/SoundStretch/WavFile.cpp +++ b/source/SoundStretch/WavFile.cpp @@ -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); }