1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed a couple of narrowing cast bugs in AudioFormatReaders

This commit is contained in:
ed 2018-11-09 11:39:45 +00:00
parent b56bdd83fd
commit 4b92a04e27
2 changed files with 2 additions and 2 deletions

View file

@ -248,7 +248,7 @@ public:
}
else
{
if (startSampleInFile >= (int) lengthInSamples)
if (startSampleInFile >= lengthInSamples)
{
samplesInReservoir = 0;
}

View file

@ -279,7 +279,7 @@ int64 AudioFormatReader::searchForLevel (int64 startSample,
if (numSamplesToSearch < 0)
bufferStart -= numThisTime;
if (bufferStart >= (int) lengthInSamples)
if (bufferStart >= lengthInSamples)
break;
read (tempBuffer, 2, bufferStart, numThisTime, false);