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:
parent
b56bdd83fd
commit
4b92a04e27
2 changed files with 2 additions and 2 deletions
|
|
@ -248,7 +248,7 @@ public:
|
|||
}
|
||||
else
|
||||
{
|
||||
if (startSampleInFile >= (int) lengthInSamples)
|
||||
if (startSampleInFile >= lengthInSamples)
|
||||
{
|
||||
samplesInReservoir = 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue